SSL

ERR_CERT_COMMON_NAME_INVALID — Fix SSL Mismatch

Browser Security Error · Your site's SSL certificate does not cover the domain name visited

CategorySSL & HTTPS
SeverityHTTPS Warning
01 · In 15 Seconds (Beginner Guide)

What Does ERR_CERT_COMMON_NAME_INVALID Mean?

Quick Verdict: Your browser opened an encrypted HTTPS connection, but the SSL certificate handed back by the server belongs to a DIFFERENT domain name (for example it covers example.com, not www.example.com — or the domain points to the wrong server entirely).

Modern browsers ignore the legacy Common Name (CN) field and strictly check Subject Alternative Names (SAN). If your exact visited hostname is missing from the certificate's SAN list, you get ERR_CERT_COMMON_NAME_INVALID.

02 · Diagnosis

Why Your Provider Shows This

  • Certificate covers root domain (example.com) ONLY, missing 'www.example.com' (or vice versa).
  • DNS A/CNAME points to a shared hosting server IP before the site's vhost/SSL was provisioned, so the server serves its default/neighbor domain's cert.
  • Subdomain depth mismatch: a wildcard certificate (*.example.com) covers blog.example.com, NOT sub.blog.example.com.
  • CDN proxy / SSL misconfiguration (for instance Cloudflare Full Strict mode when origin only has a self-signed or mismatched certificate).
03 · Resolution Checklist

How to Fix It Step by Step

1

Check where DNS A / AAAA / CNAME actually points

Run GuideDom's DNS Lookup tool and verify your domain points to the exact new server or CDN IP — a leftover old IPv6 AAAA record often serves an old host's mismatched cert!

2

Re-issue SSL including BOTH root and www in SAN

Inside your hosting panel, Let's Encrypt/Certbot, or Plesk/cPanel AutoSSL, re-issue the certificate explicitly selecting both example.com AND www.example.com.

3

Check CDN Universal SSL coverage for deep subdomains

If proxying two-level subdomains (like a.b.example.com) through Cloudflare, switch proxy off (DNS-only + origin Let's Encrypt) or upgrade Edge Certificates, since free Universal SSL only covers *.example.com.

4

Verify redirect order after issuing

Ensure HTTPS redirects happen AFTER valid certificates cover both hostnames — a redirect cannot bypass the initial TLS handshake on an un-covered domain.

04 · Live Diagnostic

Check Your Domain Live

Check CAA Blocking SSL →

Verify whether A, AAAA, or CNAME points to the intended web server or an outdated IP serving another site's certificate.

05 · Deep Technical Details

Why Modern Browsers Require Subject Alternative Name (SAN)

; Certificate inspection:
Subject: CN=example.com
X509v3 Subject Alternative Name:
  DNS:example.com        ; https://example.com -> VALID ✓
  (missing www.example.com) ; https://www.example.com -> ERR_CERT_COMMON_NAME_INVALID ✗

Since Chrome 58 and Firefox 48 (following RFC 6125 and CA/B Forum rules), browsers no longer validate the legacy Subject Common Name (CN) field at all — they match strictly against X.509 Subject Alternative Name (SAN) DNS entries. Wildcard *.example.com matches only a single leftmost label.

06 · Frequently Asked Questions

ERR_CERT_COMMON_NAME_INVALID FAQ

Why doesn't a wildcard certificate (*.example.com) work on example.com itself or a.b.example.com? +

By TLS specification, '*' matches exactly one DNS label. A wildcard covers www.example.com and api.example.com, so it must also list example.com explicitly in SAN for the apex, and will not match nested a.b.example.com.

Can HSTS prevent users from clicking 'Proceed anyway'? +

Yes. On HSTS-preloaded domains (including all .app and .dev TLDs, plus sites sending strict HSTS headers), Chrome completely removes the bypass link whenever ERR_CERT_COMMON_NAME_INVALID occurs.

Could an expired SSL cert show ERR_CERT_COMMON_NAME_INVALID? +

Expired certs normally show ERR_CERT_DATE_INVALID, though if a hosting provider automatically falls back to a generic server hostname certificate after expiry, browsers report ERR_CERT_COMMON_NAME_INVALID.

← All Error Guides Technical Guides →