Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm working on creating a self-signed OpenSSL certificate for testing HTTPS on my local development platform.

When I browse with FireFox to a HTTPS test page I am seeing: The certificate is not valid for any server names as one of the two warning messages, the other one is related to the fact that the certificate is self-signed.

enter image description here

So how do I make the certificate valid for my server, which in my case is localhost?

share|improve this question

1 Answer 1

You need to fix 2 things:

  • First make sure the DN (distinguished name) is your server name, in my case 'localhost'
  • Restart Apache

I wasn't restarting Apache which took me awhile to realize is necessary.

And it wasn't clear that DN was where I needed to stuff the hostname. Normally, as far as I could tell, DN is used for your personal name.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.