SOLVED: Ubuntu Chrome Self-signed certificate The site’s security certificate is not trusted!

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:

 

red-lock

2) Go to Connection \ Certificate Information

3) Window should popup, go to Details tab, and Export certificate by saving it to a file with name my_subdomain.my_domain.com.crt

export_certificate

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 -i my_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:

http://code.google.com/p/chromium/wiki/LinuxCertManagement

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: