This information shared by Daksh on Medium about the https installation on local development environment.
See what he is saying:
[“ Almost any website you visit today is protected by HTTPS. If yours isn’t yet, it should be. Securing your server with HTTPS also means that you can’t send requests to this server from one that isn’t protected by HTTPS. This poses a problem for developers who use a local development environment because all of them run on
At the startup I’m a part of, we decided to secure our AWS Elastic Load Balancer endpoints with HTTPS as part of a move to enhance security. I ran into a situation where my local development environment’s requests to the server started getting rejected.
A quick Google search later, I found several articles like this, this or this onewith detailed instructions on how I could implement HTTPS on
localhost. None of these instructions seemed to work even after I followed them religiously. Chrome always threw a
NET::ERR_CERT_COMMON_NAME_INVALID error at me.
All the detailed instructions I had found were correct for the time they were written. Not anymore.
After a ton of Googling, I discovered that the reason for my local certificate getting rejected was that Chrome had deprecated support for commonName matching in certificates, in effect, requiring a subjectAltName since January 2017. “]
Check Medium for more detail