ERR_CERT_COMMON_NAME_INVALID (name mismatch)

A browser error meaning the certificate presented was not issued for the name in the address bar.

What it means for you

A certificate lists the names it covers, and the browser rejects it when the name you visited is not among them. The certificate itself can be perfectly valid; it simply belongs to someone or something else. The common causes are a missing variant (the certificate covers example.com but not www.example.com), a new subdomain added without reissuing, or DNS pointing the name at a shared host or CDN that does not hold a certificate for it, so the server falls back to its default one. Reissue the certificate with every name you serve, or fix the record that sends the name to the wrong server.

Error messages

  • NET::ERR_CERT_COMMON_NAME_INVALID
  • SSL_ERROR_BAD_CERT_DOMAIN

Example

A team points shop.example.com at a hosted store with a CNAME record but never adds the domain in the store's settings. The store's servers answer with their own certificate for the platform's name, and visitors get NET::ERR_CERT_COMMON_NAME_INVALID until the custom domain is added and a certificate is issued for it.

How to fix ERR_CERT_COMMON_NAME_INVALID

  1. Read the names the certificate covers and compare them with the exact name you visited, including www.
  2. If the name is missing, reissue the certificate to include it.
  3. If the certificate belongs to a hosting platform or CDN, add your domain in that provider's settings so it issues one for you.
  4. Check that the A or CNAME record points the name at the server that holds its certificate.
  5. Enter the domain below to read the certificate it presents.
NXDOMAIN (domain does not exist)
A DNS response code meaning the name being looked up does not exist. Browsers show it as DNS_PROBE_FINISHED_NXDOMAIN or ERR_NAME_NOT_RESOLVED.
SERVFAIL (server failure)
A DNS response code meaning the resolver could not get a valid answer for the name. It is a failure to answer, not a statement that the name is missing.
REFUSED (query refused)
A DNS response code meaning the server received the query and declined to answer it.
Lame delegation
A nameserver listed for a domain that does not answer authoritatively for it.
ERR_CERT_DATE_INVALID (expired certificate)
A browser error meaning the site's certificate is outside its validity dates, almost always because it has expired.
ERR_CERT_AUTHORITY_INVALID (untrusted issuer)
A browser error meaning the certificate was not issued by an authority the browser trusts, or its chain to one is incomplete.
ERR_SSL_PROTOCOL_ERROR
A browser error meaning the secure connection could not be negotiated at all, before any certificate was checked.
HSTS error
A browser error shown when a site that requires HTTPS through HSTS presents an invalid certificate, with no option to continue anyway.