I am trying to setup a development environment on my local PC. As the production website supports HTTPS (who does not these days?), I want to have this also on the localhost. I thought it would be easy, but no.
I have a XAMP installation, and setup all so I can access the website. However, whenever I go to any page on the site locally, I get the chrome warning:
NET::ERR_CERT_AUTHORITY_INVALID
I did follow the following thread to try and solve it:
Getting Chrome to accept self-signed localhost certificate
I also created the certificate with the correct Subject Alternative Name (SAN) section, based on this:
https://deliciousbrains.com/https-locally-without-browser-privacy-errors/
After that, I generated the CER or P7B file and imported that into Chrome. I restarted both Apache and Chrome.
I put the certificate in the Trusted Root Certificate Authorities. Somehow, Chrome decided however to place it in the Intermediate Root Certificate Authorities...
I am using Chrome 61, I had the same in 60.
So somehow I am unable to install a self signed certificate, and keep getting this warning which basically makes development on localhost impossible...
I understand that this self-signing is not exactly trustworthy, but there must be a way to develop offline? It does not make sense that we have to build websites online from now on?...
Any ideas?