Is it possible to have full SSL security on localhost services?

I’ve been reading a lot about SSL certificate as of late and trying to get my localhost services to have SSL certificates to avoid warnings and whatnot. These services are 100% local, their ports are NEVER exposed to the outside.

I understand that it’s not possible for a CA to issue certificates for localhost domains and that one of my choices is a self-signed certificate. I’ve created one for “host.domain.home” and now I have a green lock on Firefox but with a small yellow warning symbol and I get a warning when I first try to access this server (because it was not issued by a certified CA). Understandable.

Is it possible to get the warning gone? I tried to install the certificate into the Trusted Root Certification Authorities on Windows and the same on Firefox certificates manager. But I still get the warning.

Is it possible to “workaround” this somehow?

Answer

Given the suggestions above in the comments section I went ahead and create my own CA to be used locally only. I followed the following tutorial for that:

https://datacenteroverlords.com/2012/03/01/creating-your-own-ssl-certificate-authority/

This article is a bit old (2012) but it’s still up to date minus one minor inconvenience. The problem is with Google Chrome from versions 58 and up. Before going ahead and generate your keys and certificates, check this question:

https://stackoverflow.com/questions/21488845/how-can-i-generate-a-self-signed-certificate-with-subjectaltname-using-openssl

Thank you @MadHatter and @HBruijn. If any of you want to provide an up-to-date tutorial instead of the links above, I’ll gladly mark that answer as accepted, otherwise I’ll mark this one. I know links like these are not preferred (because they may break in the future and this answer will lose it’s value) but I personally don’t have the time to type a great answer with all the steps. Sorry for that.

Attribution
Source : Link , Question Author : rfgamaral , Answer Author : rfgamaral

Leave a Comment