I have created a self-signed SSL certificate for the localhost CN. Firefox accepts this certificate after initially complaining about it, as expected. Chrome and IE, however, refuse to accept it, even after adding the certificate to the system certificate store under Trusted Roots. Even though the certificate is listed as correctly installed when I click "View certificate information" in Chrome's HTTPS popup, it still insists the certificate cannot be trusted.
What am I supposed to do to get Chrome to accept the certificate and stop complaining about it?
For development purposes on Windows you can
add to Chrome shortcut flag
--ignore-certificate-errors
It expected to ignore certificate errors and allow you to access invalid certificate websites.
Better detailed instructions in https://support.opendns.com/entries/66657664.
I had to tweak the Chrome launcher on macosx and added below script. Saved it as below;
When I start Chrome with this script self-signed certificates are working without a problem. But don't browse the web with the browser launched with this script you will not be warned about invalid certificates!
NOT FOR PROD
Simply paste this in your chrome:
You should see highlighted text saying: Allow invalid certificates for resources loaded from localhost
Click
Enable
.As someone has noted, you need to restart ALL of Chrome, not just the browser windows. The fastest way to do this is to open a tab to...
chrome://restart
2017-06-27 newest method:
then, add yoursite.crt and yoursite.key to your nginx conf.
from: https://github.com/webpack/webpack-dev-server/issues/854
The GUI for managing SSL certs on Chromium on Linux did NOT work properly for me. However, their docs gave the right answer. The trick was to run the command below that imports the self-signed SSL cert. Just update the name of the
<certificate-nickname>
andcertificate-filename.cer
, then restart chromium/chrome.From the Docs:
Excerpt From: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/linux_cert_management.md