Domain points to the wrong host
A CNAME or A record sends traffic to a server that holds a certificate for a different site.
Monitor
Protect
Manage
By role
Security
Renewals
Monitoring
NET::ERR_CERT_COMMON_NAME_INVALID means the certificate the server presented was not issued for the hostname in the address bar. The certificate itself may be valid, but its Subject Alternative Names do not include the name you used, so you must reissue it with that name or serve the right certificate.
| Certificate lists | Visited name | Match? |
|---|---|---|
| example.com | www.example.com | No |
| www.example.com | example.com | No |
| *.example.com | shop.example.com | Yes |
| *.example.com | example.com | No |
| *.example.com | a.shop.example.com | No |
| example.com and www.example.com | either name | Yes |
A wildcard must be the whole left-most label and matches exactly one label (RFC 9525, section 6.3). The wildcard rows follow that rule.
Open the certificate details in the browser or use openssl to print the Subject Alternative Name list.
Apex versus www and deeper subdomains are the usual gaps.
Run openssl s_client with -servername set to the hostname. If the certificate changes, the server picks certificates by name and your virtual host is missing or misconfigured.
If DNS sends the name to a different server or a shared host default site, that server presents its own certificate.
DigiCert advises generating a new CSR that includes the missing domain and reissuing the certificate.
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
| openssl x509 -noout -subject -ext subjectAltNameA CNAME or A record sends traffic to a server that holds a certificate for a different site.
The request did not match any configured server name, so the default site's certificate is returned.
A custom domain was added before its certificate was issued, so the platform shows its own name.
The certificate the server sent does not cover the hostname you visited. Chromium describes it as the common name not matching the host name. In practice browsers check the Subject Alternative Names, so the hostname must appear there.
RFC 9525 states that the Common Name must not be used to identify a service. Server identity is expressed in the subjectAltName extension, so a name only present as the Common Name will not match.
No. A wildcard such as *.example.com matches exactly one label, so it covers shop.example.com but not example.com and not a.shop.example.com. Add the bare domain as a second name on the same certificate.
You cannot. The owner must serve a certificate that includes the hostname. As a visitor, check that you typed the right address and try the www or non-www variant, then notify the site owner.
Only if the certificate lists that IP address in its Subject Alternative Names as an IP entry. RFC 9525 defines IP-ID alongside DNS-ID as valid identifier types. Most public CAs do not issue such certificates by default, so use a hostname for public sites.
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.