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 have inherited an old website whose security certificate causes this error when viewed with IE.

"The name on the security certificate is invalid or does not match the name of the site"

Is there any easy way to fix this without having to get a new certificate?

Edit: Some more info. This an internal website, though a couple of other companies have secure access to out networks DMZ to access it.

share|improve this question

A common reason for this to occur is the SSL certificate is for example.com and the URL being accessed is www.example.com or vice versa. With the exception of wildcard certificates, they are issued for specific domains/subdomains and even just adding or removing the 'www' will cause issues.

If this is the case for your website an easy fix is to automatically forward users to the 'www' or 'non-www' URL with a 301 redirect. This can be done with a simple snippet in .htaccess for Apache and probably is just as easy in IIS.

share|improve this answer
thanks, updated original question with more detail. – ozz May 11 '11 at 14:59

If it's not the www/non-www issue that John mentions then you could put an entry in your DNS for the name that's on the certificate, but you'll have to tell people to use the new name.

share|improve this answer
So in other words the name in the cert cannot be changed? That's what I figured. – ozz May 11 '11 at 15:29
Yes, that's part of why it's secure. – paulmorriss May 11 '11 at 15:37

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.