Allow bypassing warning about self-signed certificate on https localhost
Categories
(Core :: Security: PSM, defect)
Tracking
()
People
(Reporter: ml1900, Unassigned)
Details
Comment 1•7 years ago
|
||
Updated•7 years ago
|
| Reporter | ||
Comment 2•7 years ago
|
||
Updated•7 years ago
|
Comment 3•7 years ago
|
||
| Reporter | ||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
| Reporter | ||
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Comment 8•6 years ago
|
||
I am having this problem with firefox 68.0.2 - clearing data ("Cookies and Site Data" + "Cached Web Content") and refreshing gave the option to add exception again.
(In reply to Honza Bambas (:mayhemer) from comment #1)
Not sure why exactly we removed the possibility to add an exception for
self-signed EE certs.Anyway, the correct approach is:
- create your own self-signed CA
- create an EE (end entity) cert request with "CN=localhost" or whatever
domain name you want- let that EE cert request sign with your CA created in the first step ->
you get your server EE cert- add that CA as trusted for web site identification to Firefox
- use the EE cert on your localhost server
Then there is no need to add exceptions at all. You can use OpenSSL or NSS
tools.
I still have the issue (Firefox 81), I created my certificates using dotnet dev-certs https and I just keep having SEC_ERROR_INADEQUATE_KEY_USAGE error and not even the possibility to create an exception. As a developer, this is incredibly frustrating, especially since it is yet another example where Chrome works it out out-of-the-box...
Anyway, I am not expert in certificate generation, how do I do the steps described above? Or maybe, is there another more modern procedure since Firefox 68 ?
Thanks
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
Oh damn, I am so sorry... I fired the gun too soon on Firefox :S
Turns out the problem was me.
The dotnet command line above is not enough, there was a flag missing. The correct command line is dotnet dev-certs https --trust.
On Windows, this command will pop up a window to accept the self-signed certificates. Once accepted, you will be able to access the local web servers started through dotnet.
Description
•