Caveat: these instructions are written for Mac OS X. PC instructions will be slightly different at PCs don't have a keychain, and Google Chrome (unlike Firefox) uses the system keychain.
So here's how to get Google Chrome to play nicely with your self-signed SSL certificate:
- In the address bar, click the little lock with the X. This will bring up a small information screen. Click the button that says "Certificate Information."
- Click and drag the image to your desktop. It looks like a little certificate.
- Double-click it. This will bring up the keychain Access Utility. Enter your password to unlock it.
- Be sure you add the certificate to the System keychain, not the login keychain. Click "Always Trust," even though this doesn't seem to do anything.
- After it has been added, double-click it. You may have to authenticate again.
- Expand the "Trust" section.
- "When using this certificate," set to "Always Trust".
or from command line execute following command:
$ sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain site.crt
That's it! Close Keychain Access and restart Chrome, and your self-signed certificate should be recognized now by the browser.
This is one thing I hope Google/Chromium fixes soon as it should not be this difficult. Self-signed SSL certificates are used *a lot *in the business world, and there should be an easier way for someone who knows what they are doing to be able to ignore this error than copying certificates around and manually adding them to the system keychain.