Answer the question
In order to leave comments, you need to log in
How to make chrome trust a certificate?
Good afternoon!
I want to secure websocket traffic between me and my application running on AWS EC2.
I made myself a self-signed certificate according to this instruction :
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 3650 -nodes
# настройки сертификата
Country Name (2 letter code) [AU]:RU
State or Province Name (full name) [Some-State]:Moscow
Locality Name (eg, city) []:Moscow
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Test LLC
Organizational Unit Name (eg, section) []:Test
Common Name (e.g. server FQDN or YOUR name) []:
Email Address []:[email protected]
Answer the question
In order to leave comments, you need to log in
It is necessary
- to generate a certificate
- to specify the correct CN,
- to add IP and domainname(CN) to hosts
- to add a certificate to a trusted one (macOS - keychain, windows - certmgr.msc)
- go to the site by domainname
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
-keyout example.key -out example.crt -subj "/CN=myawsdomain.com" \
-addext "subjectAltName=DNS:www.myawsdomain.com,DNS:myawsdomain.com,IP:10.11.10.11"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question