prsona
Get started
High: fix this week

SSL certificate name mismatch: when the padlock names the wrong domain

Last reviewed

A certificate that does not match your domain scares visitors off.

An SSL certificate name mismatch means the security certificate your server presents was issued for a different hostname than the one in the address bar. The encryption still works, but the browser cannot confirm the site is who it claims to be, so it blocks the page with a warning. Visitors see a scary error instead of your site.

Why an SSL certificate name mismatch costs you customers

It usually happens after a hosting move or a misconfigured setup, where the certificate covers www.example.com but not example.com, or a platform default certificate is serving your custom domain. Either way, a real visitor gets stopped at a warning screen and leaves, and you never see the lost lead.

What usually causes an SSL certificate name mismatch

  • The certificate covers www but not the bare domain, or vice versa
  • A hosting platform is serving its default certificate
  • The site moved and the certificate was not reissued
  • A CDN or proxy is terminating TLS with the wrong certificate

How to check for an SSL certificate name mismatch yourself

  1. Type your address four ways: with and without www, each with https:// in front. Note any version that shows a security warning.
  2. On a version that warns, click "Advanced" on the warning page. The browser usually states which name the certificate was actually issued for.
  3. Open the certificate details from the padlock on a working version and read the list of names it covers. Your bare domain and www should both be there.
  4. Repeat the test for any subdomain you send traffic to, such as a booking, shop or campaign address.

How to fix an SSL certificate name mismatch

  1. Ask your host or certificate provider to reissue the certificate so it covers every hostname you use, typically both the bare domain and the www version.
  2. If you use a hosting platform or site builder, finish the custom domain setup there so it stops serving its own default certificate.
  3. If a content delivery network or proxy sits in front of your site, have your developer check that it holds a certificate for your domain too.
  4. Redirect the spare version of your address to the main one, but only after both versions have a valid certificate, or the redirect itself will warn.

How Prsona catches an SSL certificate name mismatch

Prsona validates the certificate against the exact hostname on every scan and flags a mismatch on the first scan that sees it, so you can fix it before more visitors are turned away at the warning.

Prsona looks for an SSL certificate name mismatch as part of SSL certificate monitoring.

See whether your certificate covers both the www and non-www versions of your address.

Questions about an SSL certificate name mismatch

Why does my site work with www but show a warning without it?

The certificate was issued for only one of the two names. Browsers treat www.example.com and example.com as separate hostnames, and each must be listed on the certificate. Whichever one is missing triggers the warning. Reissuing the certificate with both names, which most providers include at no extra cost, resolves it.

Is a certificate name mismatch dangerous or just a configuration error?

On your own site it is almost always a configuration error, not an attack. The browser cannot tell the difference, though. A certificate for the wrong name is exactly what an impersonation attempt looks like, so it blocks the page either way. Treat it as urgent because visitors see the same alarming warning in both cases.

Sources