Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working on creating a self-signed SSL 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.

Error code: sec_error_untrusted_issuer

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

share|improve this question

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


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.