SSL / monitoring TECHNICAL HANDBOOK / 2026

SSL ERRORS

NET::ERR_CERT_COMMON_NAME_INVALID: causes and fixes

Chrome reports a certificate identity mismatch when the requested service name does not match the presented certificate. The message also appears as ERR_CERT_COMMON_NAME_INVALID.

What it means

Despite the name of the error, check the DNS names in the certificate’s Subject Alternative Name extension. SNI selects the server’s virtual host during the handshake; hostname verification checks the returned certificate against the URL.

What to check

  1. Copy the exact hostname from the failing URL, including any redirect destination.
  2. Compare its expected DNS answer with the peer address actually contacted.
  3. Inspect the presented SANs and repeat a hostname-validating test while preserving SNI.

Test the connection

openssl s_client -connect www.example.com:443 -servername www.example.com \
  -verify_hostname www.example.com -verify_return_error </dev/null

Run this OpenSSL 3.x example in a POSIX shell. Keep the hostname, peer address and full verification result with the error report.

Choose Windows, macOS or Linux commands →

How to fix it

  1. Correct an unintended DNS destination or the TLS virtual-host mapping that selects a default certificate.
  2. If the intended hostname is absent from the SANs, obtain and deploy a certificate that covers it.
  3. Test aliases and the apex separately: *.example.com covers one left-most label, not example.com or a.b.example.com.

Check the fix

Use the hostname in the URL and, when pinning an IP, use curl --resolve rather than replacing the URL with the IP. A successful chain check must also verify the intended identity.

Details worth checking

Keep the hostname in the URL when testing a particular IP. With curl --resolve, the connection goes to your chosen address while SNI and certificate verification use the hostname.

Related guides

Related errors

References