SSL Error 'Certificate Name Mismatch' (ERR_CERT_COMMON_NAME_INVALID)
The certificate does not cover the address visitors use, such as www or a subdomain. Reissue it with the right names.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
A certificate lists the names it protects. If a visitor opens a name that is not on it, the browser warns.
Step 1: See what the certificate covers
Click the warning, then view the certificate and its names (Subject Alternative Names). Compare them with the address you visited.
Common causes
- The certificate covers
yourdomain.combut notwww.yourdomain.com, or the reverse. - A subdomain is not covered. Use a certificate for that subdomain or a wildcard.
- The domain points to a server that has a different site's certificate, for example the host's default.
- The certificate was issued for the old domain.
Fix
- In your hosting panel's SSL section, issue or reinstall a certificate that includes all the names you use.
- Make sure the domain's DNS points to the right server. See our DNS guide.
- Redirect to one preferred version. See our redirect guide.
Related
For expired or failed renewals, see our expired certificate guide.
Related guides
- How to Move a WordPress Site to a New Host or Domain: Checklist
- How to Create a Subdomain (blog.yourdomain.com, shop.yourdomain.com) and Point It Somewhere
- "Not Secure" Warning or Padlock Missing After Installing SSL (Mixed Content)
- Free SSL (Let's Encrypt) vs Paid Certificate: Which Do You Need?
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.