NET::ERR_CERT_COMMON_NAME_INVALID: Meaning & How to Fix It

Key takeaway

NET::ERR_CERT_COMMON_NAME_INVALID (Chromium error -200) means the site's certificate doesn't list the name in your address bar. Often it's www vs no www, a Wi-Fi login page, or a server sending another site's certificate. As a visitor, check the address and sign in to the Wi-Fi; as the owner, put every name (example.com and www.example.com) on the certificate.

Check it now

NET::ERR_CERT_COMMON_NAME_INVALID: the address you opened next to the names the site's certificate lists, with the fixes
NET::ERR_CERT_COMMON_NAME_INVALID: the address you opened next to the names the site's certificate lists, with the fixes
Start reading
  1. What Does NET::ERR_CERT_COMMON_NAME_INVALID Mean?
  2. How It Looks in Each Browser
  3. Why It Happens: Chromium's Four Reasons
  4. Check Which Names the Certificate Covers
  5. How to Fix It as a Visitor
  6. If You Run the Website
  7. Frequently Asked Questions

What Does NET::ERR_CERT_COMMON_NAME_INVALID Mean?

An HTTPS certificate lists the names it is valid for, such as example.com and www.example.com. When you open a site, your browser checks that the name in the address bar is on that list. If it isn't, Chrome, Edge and other Chromium browsers stop with NET::ERR_CERT_COMMON_NAME_INVALID.

Chromium's source code defines it as error -200: "The server responded with a certificate whose common name did not match the host name." (Chromium)

The name is older than the check. Chrome now looks only at the certificate's Subject Alternative Names (SANs): it removed the fallback to the certificate's common name in Chrome 58, noting that RFC 2818 had deprecated it back in 2000. (Chrome Platform Status) The current standard, RFC 9525, says the same: the server identity "can only be expressed in the subjectAltNames extension".

How It Looks in Each Browser

Both browsers tell you which names the certificate does cover, which is the fastest clue to the cause.

Chrome's wording from Chromium's ssl_errors_strings.grdp; Firefox's from its nsserrors.ftl and certError.ftl. The names are placeholders.
Browser and caseWhat you see
Chrome and EdgeYour connection is not private · NET::ERR_CERT_COMMON_NAME_INVALID
Chrome: the detailsThis server could not prove that it is site.example; its security certificate is from other.example.
Chrome: no names at all…its security certificate does not specify Subject Alternative Names.
FirefoxSSL_ERROR_BAD_CERT_DOMAIN · requested domain name does not match the server's certificate
Firefox: the details…it uses a certificate that is not valid for site.example. The certificate is only valid for other.example.

Why It Happens: Chromium's Four Reasons

Chromium's source lists four ways this error comes about. (Chromium) In plain words:

  • An attacker redirected your traffic to their own server, with a certificate for a name they control. This is why the warning exists.
  • The server is misconfigured and sends the wrong certificate. A server that hosts many sites picks the certificate by the name your browser asks for (Server Name Indication, made for "servers that host multiple 'virtual' servers at a single underlying network address", RFC 6066). A site that has no certificate set up there gets another site's, or the server's default one.
  • You're on Wi-Fi that wants you to sign in first. The network sends you to its login page, whose certificate can't match the site you asked for.
  • Your device added a DNS search suffix. You typed a short name like intranet, the system tried intranet.corp.example, and the server's certificate doesn't cover the short name in your address bar.

A fifth cause is close to the second: a DNS service that blocks the site (an ISP block, parental controls, an ad-blocking DNS) can send you to a block page with its own certificate. Our guide to "Your connection is not private" covers that case.

Check Which Names the Certificate Covers

To see the certificate the site really sends, check it from outside your device and network. Enter the address below: the check lists every name on the certificate and says whether the one you typed matches.

See the names on the site's certificate

Whether a name matches follows fixed rules. Every name has to be listed on its own, and a wildcard is allowed only as "the complete content of the left-most label" and "can only match one label". (RFC 9525)

Matching rules from RFC 9525 (§6.3 and §6.4). example.com and 192.0.2.10 are reserved for documentation.
Name on the certificateAddress you openedMatch?
example.comexample.comYes
example.comwww.example.comNo: www has to be listed too
*.example.comwww.example.comYes: one label
*.example.comexample.comNo: the wildcard needs a label
*.example.coma.b.example.comNo: only one label
example.comhttps://192.0.2.10No: an IP address has to be listed as an IP

How to Fix It as a Visitor

Try these in order, and reload the page after each one.

  1. Check the addressLook for a typo, and try the site with and without www. Open it from a search result or a link you trust rather than an old bookmark.
  2. Sign in to the Wi-FiOn hotel, airport or café Wi-Fi, open a plain http:// page such as http://neverssl.com. The network's login page appears; after you sign in, reload the site.
  3. Type the full name on a work networkInstead of a short name like intranet, type the full one, such as intranet.corp.example, so the name in the address bar is the one on the certificate.
  4. Turn off a filtering DNS, VPN or proxy to testIf the certificate turns out to belong to a filter or a network appliance, the block is on your side, not the site's.
  5. If only this site fails everywhere, tell its ownerWhen the SSL Checker above shows the same mismatch, nothing on your device can fix it: the site has to put the right name on its certificate.

If You Run the Website

Visitors see this error when your certificate doesn't list the name they used. To fix it:

  • Put every name on the certificate, both example.com and www.example.com, plus each subdomain you serve. A wildcard (*.example.com) covers one level of subdomains and never the bare domain, so list example.com next to it.
  • Make sure each name gets its own certificate from the server. On shared hosting, a load balancer or a CDN, add the name to the site's configuration there, not only to DNS: otherwise it gets the default certificate.
  • Don't rely on the Common Name. Browsers check only the Subject Alternative Names; a name that appears only in the CN doesn't count.
  • Reissue after adding a name. A certificate can't be edited: request a new one with the full list. Our CSR Generator builds the request with every name in it.

Then check the live site with the SSL Checker, or paste the certificate into the Certificate Decoder to read its names. The other two common certificate errors have their own guides: ERR_CERT_DATE_INVALID for dates and ERR_CERT_AUTHORITY_INVALID for trust.

Which names does the site's certificate cover?

DNS Robot's free SSL Checker reads the certificate a site really sends, lists every name on it and tells you whether the address you typed matches, along with the chain, dates and grade.

Sources

  1. net_error_list.h: CERT_COMMON_NAME_INVALID (-200), Chromium
  2. ssl_errors_strings.grdp, Chromium
  3. Support for commonName matching in Certificates (removed in Chrome 58), Chrome Platform Status
  4. nsserrors.ftl, Mozilla
  5. certError.ftl, Mozilla
  6. RFC 9525: Service Identity in TLS, IETF
  7. RFC 6066: TLS Extensions (Server Name Indication), IETF

Frequently Asked Questions

What does NET::ERR_CERT_COMMON_NAME_INVALID mean?

The website's certificate doesn't list the name in your address bar, so the browser can't confirm it's talking to that site. It's Chromium error -200. The usual causes are a missing www name, a server sending another site's certificate, or a Wi-Fi login page.

Why does it say "common name" if Chrome checks other fields?

The error is older than the current check. Chrome stopped using the certificate's common name in Chrome 58 and now matches only the Subject Alternative Names, as RFC 9525 requires, but the error code kept its original name.

Does a certificate for example.com cover www.example.com?

No. Each name has to be listed on the certificate. A certificate for example.com alone triggers this error on www.example.com, and the other way round. One certificate can list both names.

Does a wildcard certificate cover the main domain?

No. Under RFC 9525 a wildcard like *.example.com matches exactly one label, such as www.example.com or shop.example.com. It doesn't match example.com itself or a deeper name like a.b.example.com, so those must be listed separately.

Is it safe to click Proceed?

Only on a site or device you run yourself. One of Chromium's listed causes is an attacker redirecting your traffic with their own certificate, so never enter a password or payment details on a page that shows this error.

Why do I only see it on public Wi-Fi?

Many hotel, airport and café networks send you to their login page first, and that page's certificate can't match the site you asked for. Open a plain http:// page such as neverssl.com, sign in, then reload the site.

Why does it appear when I type a short name like intranet?

Your device can add a DNS search suffix, turning intranet into intranet.corp.example. The page loads from that server, but the address bar still says the short name, which the certificate doesn't list. Type the full name instead.

How do I fix it on my own website?

Get a certificate that lists every name visitors use, including example.com and www.example.com, and make sure your server, host or CDN sends it for each of those names. Then check every spelling with an SSL checker from outside your network.

About the author

Shaik Vahid

Founder of DNS Robot. Vahid spent years in web hosting support fixing domains, DNS records, SSL certificates and email delivery for customers. He builds DNS Robot's tools and writes these guides from the errors people actually hit.

SSL Certificate Check

Verify SSL certificate validity and security details