SSL troubleshooting

NET::ERR_CERT_COMMON_NAME_INVALID: Causes and Fix

This Chrome error means your certificate does not list the hostname the visitor typed. Find the missing name, then cover it with the right certificate.

The short answer

NET::ERR_CERT_COMMON_NAME_INVALID appears when the hostname in the address bar is not listed in the website’s SSL certificate. The certificate may be valid and trusted, but it was issued for a different name, for example example.com instead of www.example.com or shop.example.com.

In other words, the server presents an SSL certificate with the wrong hostname. The fix is on the server side: install a certificate that includes the exact name, or make sure the server sends the right certificate for that name.

Errors on subdomains?

A wildcard certificate covers every first-level subdomain of your domain, so new subdomains do not trigger name errors.

Compare wildcard certificates

What does ERR_CERT_COMMON_NAME_INVALID mean?

It means the hostname you visited is not in the certificate’s list of subject alternative names (SANs), the field where a certificate names every domain it is valid for. Chrome compares the hostname against that list and stops the connection when there is no match.

Despite its name, the error is not about the common name (CN) field. Chrome has ignored the common name for this check since Chrome 58 in 2017 and looks only at the SAN list. Other browsers show similar name-mismatch warnings with their own error codes.

CauseExampleFix
www or non-www missingCertificate for example.com, visitor opens www.example.comCertificate covering both forms
Subdomain not coveredblog.example.com not in the SAN listAdd a SAN or use a wildcard
Wildcard one level too deep*.example.com used for a.b.example.comAdd the name as a SAN or a second-level wildcard
Wrong certificate servedShared server sends the default site’s certificateFix the virtual host or SNI configuration
CDN or proxy certificateProxy presents a certificate without your custom domainAdd the domain to the CDN’s certificate settings
Interception softwareAntivirus or company proxy replaces certificatesVisitor-side: check that software

When the right certificate exists but the wrong one appears

On servers that host several sites, the server picks a certificate by the name the browser sends at the start of the connection (SNI, Server Name Indication). If a hostname has no matching configuration, the server falls back to its default certificate, which belongs to another site. The same happens when a CDN or load balancer handles HTTPS without your custom domain set up.

How to find and fix the missing name

  1. Read the certificate’s names

    Click the icon left of the address, open the certificate details and look at the subject alternative names, or run the domain through a checker.

  2. Compare with the hostname

    Note the exact name in the address bar, including www and every subdomain level.

  3. Check what the server sends

    If the right certificate exists but another one appears, fix the server or CDN configuration for that hostname.

  4. Cover the name and retest

    Reissue with the extra SAN or switch to a certificate type that covers it, install it and test every hostname again.

How do I fix it for www vs non-www?

Use a certificate that lists both example.com and www.example.com, then redirect one form to the other. A redirect alone does not help, because the browser checks the certificate before it follows any redirect.

Many single-domain certificates include both forms automatically, but this depends on the certificate authority (CA) and product, so check the product details or the SAN list after issuance. If you entered only one form when ordering, a reissue with both names usually solves it within your current term.

Tip: Test the bare domain, the www form and both with http:// typed explicitly. Visitors, old links and search results use all four.

Why does it appear on a subdomain?

It appears on a subdomain when that exact subdomain is not in the certificate, or when a wildcard does not reach it. A wildcard certificate for *.example.com covers one subdomain level only.

HostnameCovered by *.example.com?
shop.example.comYes
www.example.comYes
example.comUsually included, depending on the CA
eu.shop.example.comNo – needs its own SAN or *.shop.example.com
example.netNo – different domain

Plan the names before you order. List every hostname that serves HTTPS today, including publicly reachable mail, API and staging hosts, and decide which ones a wildcard reaches.

If you are unsure how the asterisk matching works, read our explainer on what a wildcard certificate is. For many first-level subdomains, wildcard SSL certificates are the simplest fix. For a handful of unrelated names, or for deeper subdomains, add them as SANs on a multi-domain (SAN) SSL certificate.

Wildcard certificates that cover your subdomains

Is it the visitor’s or the site owner’s problem?

In almost every case it is the site owner’s problem: the server presents a certificate that does not include the requested name, and only the site owner can change that. Clearing the browser cache or changing the clock will not help.

The exception is software that intercepts HTTPS on the visitor’s device or network, such as antivirus web scanning, parental controls or a corporate proxy. If one visitor sees this error on many unrelated sites while others do not, that software is the likely cause. To check the certificate from outside any single device or network, run the hostname through our SSL checker. For other warning types, see our overview of SSL certificate errors.

Confirm the fix

After installing the new certificate, test every hostname from outside your network and confirm these points.

  • Every hostname appears in the SAN list
  • The server sends the new certificate for each name
  • The intermediate chain is complete
  • CDN and load balancer show the same certificate
  • No warning in a private browser window

Cover every subdomain with one certificate

A wildcard certificate secures your domain’s first-level subdomains, including ones you add later, so name mismatch errors stop at the source.

Compare wildcard certificates

Categories

  • Wildcard SSL Certificates

    Protect eligible subdomains under one base domain and simplify certificate management for multi-subdomain websites.

    from $20.99

Related articles

Frequently asked questions

What does ERR_CERT_COMMON_NAME_INVALID mean?

It means the hostname in the address bar is not listed in the certificate’s subject alternative names (SANs). Chrome checks only the SAN list, not the old common name field, and blocks the connection if the name is missing. The certificate may otherwise be valid and trusted; it was simply issued for different names than the one the visitor requested.

How do I fix it for www vs non-www?

Install a certificate that covers both example.com and www.example.com, then redirect one version to the other. A redirect alone cannot fix the error, because the browser checks the certificate before following the redirect. Many single-domain products include both forms, depending on the certificate authority, so confirm both names appear in the SAN list after issuance.

Why does it appear on a subdomain?

The subdomain is not listed in the certificate, or a wildcard does not reach it. A wildcard such as *.example.com covers one subdomain level, so shop.example.com works but eu.shop.example.com does not. Add the missing name as a SAN, use a multi-domain certificate, or use a wildcard that matches the right level, then install it and retest.

Is it the visitor’s or the site owner’s problem?

Almost always the site owner’s. The server sends a certificate that does not include the requested hostname, and only the site owner can replace or reconfigure it. The exception is HTTPS interception software on the visitor’s side, such as antivirus web scanning or a corporate proxy, which can cause the error on many unrelated sites for that one user.