NET::ERR_CERT_COMMON_NAME_INVALID in Chrome: what it means and how to fix it

NET::ERR_CERT_COMMON_NAME_INVALID means the hostname you opened is not listed in the site's certificate. If you run the site, reissue the certificate with every hostname in its Subject Alternative Name (SAN) list. If you are a visitor, check the address and your local setup, then contact the site owner.

Applies to:Google Chrome58 and later
On this page

What it means

Chrome shows this full-page "Your connection is not private" warning when the name in the address bar doesn't appear in the Subject Alternative Name (SAN) list of the server's certificate. In other words, the certificate was issued for some other name.

The name of the error is historical. Since Chrome 58, Chrome no longer uses the old Common Name (CN) field to match hostnames, as Eric Lawrence's write-up describes. Only the SAN list counts. If the certificate has a CN but no SAN, the error details often include [missing_subjectAltName].

This is almost always a problem on the server side. A visitor can rule out a few local causes, but only the site owner can replace a certificate. If the warning is about a different authority rather than the name, see NET::ERR_CERT_AUTHORITY_INVALID instead.

Symptoms and causes

You are likely dealing with this problem if:

  • A full-page "Your connection is not private" warning with the code NET::ERR_CERT_COMMON_NAME_INVALID.
  • Advanced details mention [missing_subjectAltName] when the certificate has only a Common Name.
  • It often appears on internal servers, routers, appliances and sites using self-signed or internal-CA certificates, but public sites can show it too.

The usual causes, most common first:

The certificate doesn't list the requested hostname
A certificate for example.com may not cover www.example.com, or the reverse. A wildcard such as *.example.com doesn't match the bare domain or a deeper name like a.b.example.com.
The certificate has a CN but no SAN
Older tools such as makecert.exe, legacy self-signed or internal-CA certificates and some appliance defaults produce certificates without SAN entries. Chrome ignores the CN.
The site is opened by IP address or a short internal name
If the address you typed is an IP or an internal short name that isn't in the SAN list, the names don't match.
The server presents another site's certificate
A proxy, CDN, load balancer or shared host may serve a default certificate because SNI is missing or misconfigured, or the wrong virtual host answers the request.
Local interception on your device or network
Less commonly, a TLS-inspecting proxy, antivirus or firewall substitutes its own certificate.
A redirect to an uncovered hostname
The site sends visitors to a hostname that the certificate doesn't cover.

How to fix it

Work through these in order. They start with the quickest, safest checks and move to deeper repairs; stop as soon as the problem is gone.

1.Check the address and try the other variant

Easy

A typo or a www/non-www mismatch is the quickest thing to rule out.

  1. Look at the address bar for typos, then retype the address.
  2. Try the same site with and without www.
  3. If you were using an IP address or a short internal name, use the full hostname the site's certificate was issued for.

2.Rule out your own device and network

Easy

If something on your side swaps the certificate, the error disappears when you remove it from the path.

Before you start: If you pause antivirus HTTPS scanning, turn it back on as soon as you finish testing.

  1. Check that your system date and time are correct.
  2. Open the site on another device or another network (for example a phone on mobile data) to see whether the error follows you.
  3. Disable browser extensions, or try a private window with extensions off.
  4. If you use third-party antivirus, briefly pause its HTTPS scanning, reload the page, then turn the setting back on.

3.Check which certificate the server actually presents (site owners)

Moderate

This shows the certificate's subject, issuer and SAN list, so you can see which name is missing.

  1. From a terminal, run the command below, replacing both HOST values with your hostname. The -ext option needs OpenSSL 1.1.1 or later.
    Terminal
    echo | openssl s_client -servername HOST -connect HOST:443 | openssl x509 -noout -subject -issuer -ext subjectAltName
  2. Compare the DNS: entries in the output with the exact hostname visitors use. If the name is missing, or there is no SAN at all, the certificate needs to be reissued.
  3. If the output shows a certificate for a different site, the problem is probably SNI or the virtual host, so go to the server configuration step below.

4.Reissue the certificate with every hostname in the SAN list (site owners)

ModerateChanges settings

This is the actual fix for a certificate that lacks the name or lacks SAN entries entirely.

Before you start: Keep a copy of the current certificate and private key before replacing anything, so you can roll back if the new one is installed wrongly.

  1. Request or generate a new certificate that lists every hostname you serve, including the www variant, as SAN entries. For an internal CA or self-signed certificate, regenerate it with SANs. With OpenSSL you can use the -addext option or a subjectAltName line in the config file.
    Text
    -addext "subjectAltName=DNS:host.example.com"
  2. If your current tool can't set SAN entries (for example makecert.exe), switch to one that can.
  3. Install the new certificate and restart or reload the service, then reload the site in Chrome.

5.Fix virtual host, SNI and redirects (site owners)

AdvancedChanges settings

A valid certificate still triggers this error if the wrong one is served for the requested name, or if visitors are sent to an uncovered hostname.

Before you start: Back up the web server or load balancer configuration before editing it.

  1. Make sure the new certificate is attached to the virtual host (or load balancer listener) that answers for that hostname.
  2. Check that SNI is enabled and working on the server, proxy or CDN, so the right certificate is chosen per hostname.
  3. Make the site redirect to a hostname that the certificate covers.

Check that it worked

  • Reload the site in Chrome: the page opens with the padlock and no "Your connection is not private" warning.
  • Re-run the openssl command and confirm the hostname appears in the DNS: list of the SAN output.

If it still fails

  • If you are a visitor and the error remains on every device and network, the certificate is wrong on the server. Contact the site owner or your IT team and send them the exact address and the error code.
  • Do not click through the warning on sites where you sign in or pay. The certificate doesn't match the site you asked for, so the connection can't be trusted.
  • Don't rely on browser flags or bypass tricks. Chrome briefly offered an enterprise policy, EnableCommonNameFallbackForLocalAnchors, as a workaround for certificates from local trust anchors, but it was removed in Chrome 66 (textslashplain, and Epson's FAQ says it stops working after Chrome 65). Reissuing the certificate is the only reliable fix.
  • If the certificate chain is the issue rather than the name, read NET::ERR_CERT_AUTHORITY_INVALID.

Questions

Why does it say Common Name if Chrome ignores the Common Name?

The error name dates from when browsers matched hostnames against the CN field. Chrome 58 stopped doing that, but the error code kept its name.

Does a wildcard certificate cover the bare domain?

No. A certificate for *.example.com doesn't match example.com itself, nor a deeper name such as a.b.example.com. List those names separately in the SAN.

Sources

  1. Chrome deprecates subject CN matching · textslashplain
  2. Google Chrome reports NET ERR CERT COMMON NAME INVALID due to missing Subject Alternative Names (RSA Identity Router) · RSA
  3. KA 01066 · Epson
  4. NET::ERR_CERT_COMMON_NAME_INVALID in Chrome (and Chromium based Edge) · rakhesh.com
  5. net err cert common name invalid · SSL Dragon