It was quite a pain to see this red “The site’s security certificate is not trusted!” for my site with self-signed certificate.
And took me some time to find the answer for my ubuntu 11.04 64bit chrome.
Let’s say you have a site at my_subdomain.my_domain.com
and when you go to https://my_subdomain.my_domain.com chrome shows you this red warning.
Here are the steps to fix the issue:
1) Click on the red-crossed lock at the address bar of your browser:
2) Go to Connection \ Certificate Information
3) Window should popup, go to Details tab, and Export certificate by saving it to a file with namemy_subdomain.my_domain.com.crt
4) Optional step: – check the list of installed certificates by running this command from terminal:
certutil -d sql:$HOME/.pki/nssdb -L
5) Add your certificate to a list by running this command from terminal:
certutil -d sql:$HOME/.pki/nssdb -A -t “P,,” -n my_subdomain.my_domain.com -imy_subdomain.my_domain.com.crt
6) Repeat step 4) to see your certificate added
7) Restart your chrome browser and check the page.
8) Note when you open url of your site it should be the same as specified in your certificate (my_subdomain.my_domain.com should be the same on both image 1 and image 2 )
More info can be found at:
No comments:
Post a Comment