Reposted from ServerFault as they pointed me to this site for this question.
I have a local development site with virtual host gpd.local
that uses https by default.
Up untill recently I could access the local site through https both firefox and chrome. But a couple of days ago I cannot. I get the message that the site uses an invalid ssl certificate (precisely translated from greek in firefox: "Failure to secure connection. Page failed to certify its identity", on chrome it displays: ERR_CONNECTION_RESET after clearing chrome cache I get the NET::ERR_CERT_AUTHORITY_INVALID error message). And there is NO option to add an exception (nor firefox nor chrome) as it used to be.
I use XAMPP 7.2.3 on windows 7 and I use the default apache ssl certificate that comes with XAMPP (I think it is for example.com
, but it used to work fine by adding exception).
I use firefox v64 on windows and chrome v71.0.3578.98 on windows.
As you can see in the screenshot below the exception is indeed present in firefox (it is in greek)
The columns are:
- Certificate Name=Unknown(not stored)
- Server = gpd.local:443
- Lifespan: Permanent
- Expires: [blank]
What can I do to fix this?
UPDATE:
Yes, the local site should work with https
. It is a must and it is how it will work on a live server so the dev
mirror should use same as well. So the option to not use https
is not one I can follow. It is a requirement.
Ideally I would like it to work as it did work so far. Meaning by using a default certificate and adding exceptions per local site.
Specificaly I do not want to disable ssl checking globally on the browser and I would prefer not having to create new certificates one for each local site.
Setting Apache headers
is a possible solution but so far I cannot get it to work. But if no other way is found I can try creating new certificates as well with proper instructions.
UPDATE2: I have another mirror dev site locally using SSL and HTTPS using an older version of Apache (older XAMPP Version 1.8.0) and it works fine no SSL errors and it still uses a default certificate that comes with apache installation. So I wonder if this has anything to do with newer version of apache (newer version of XAMPP) and how to resolve. Maybe some setting in Apache??
Help is greatly appreciated