I’ve been trying for several weeks to get this self-signed certificate that works in several browsers (Chrome, Firefox, Edge, IE).
I managed to create a certificate and install it as a trusted root certificate , but in every browser I have to bypass the protection in order to have a test environment (website with xampp).
Today I focused on Edge and IE (without success), and since the procedure for chrome is slightly different, I will try to get it to work in chrome tomorrow.
I tried both creating a new one and duplicating the old (working) one, this way:
To create a new certificate, open powershell as admin, and then:
New-SelfSignedCertificate -DnsName "127.0.0.1", "localhost" -CertStoreLocation "cert:\LocalMachine\My"
exported as indicated in this description .
To clone, I used an example in this documentation .
Then I imported the certificates into a "trusted root certificate" using certlm.msc .
But I got DLG_FLAGS_INVALID_CA and DLG_FLAGS_SEC_CERT_CN_INVALID error codes in Edge and IE.
Does anyone know a procedure to make this work?
I searched everything on the network without finding it.
source share