In this article
Every certificate lists the domains it was issued for. If a visitor opens an address that isn’t on that list, the browser shows “Your connection is not private” with the code NET::ERR_CERT_COMMON_NAME_INVALID. The certificate may be perfectly fresh — it just belongs to another site.
What it is
The list of domains is stored in the certificate’s SAN field (Subject Alternative Name). For example: example.com, www.example.com. There are also wildcard certificates for *.example.com — they cover all subdomains of one level, but not example.com itself unless it was added separately.
Typical causes of a mismatch:
- the certificate was issued only for
example.com, while visitors go towww.example.com(or the other way round); - on shared hosting the site shows a neighbour’s or the host’s own certificate — this happens when SSL isn’t enabled for your domain;
- the domain was moved to a new server that has another site’s certificate;
- a new subdomain or mirror was added, but the certificate wasn’t reissued.
How the monitor checks
Impact on the site and business
- Visitors see a red warning and leave — just as with an expired certificate.
- Half of your traffic can be lost unnoticed: if only the www version is broken, you don’t see it, but people coming from business cards and old links do.
- Payment systems and integrations refuse to send notifications to a site with a mismatched certificate.
Why it matters
The owner usually types the address the same way and always lands on the working variant. But the business cards say “www.”, old listings use the other variant, and some customers hit the warning for years. The monitor checks the site at the exact address and separately checks all mirrors.
Norms
| Rating | Status | Comment |
|---|---|---|
| Good | The certificate covers the domain and www | Every variant of the address works |
| Could be better | www isn’t covered, but nothing links to it | Add www to the certificate so the redirect works over https |
| Bad | The main address isn’t in the certificate | Visitors see a warning |
How to fix it
Hosting and control panel
- Open the SSL / Let's Encrypt section in the hosting panel.
- Reissue the certificate, ticking both variants: with www and without. If there are subdomains (shop, cms), include them too.
- Make sure “Use SSL” is turned on for the site with exactly this certificate.
Server (Certbot)
Issue the certificate for all names at once — Certbot will replace the old one:
sudo certbot --nginx -d example.com -d www.example.com
sudo certbot certificatesThe second command shows all certificates on the server and the domains in each. Check that the site’s nginx config lists both names in server_name and points to the right certificate.
Cloudflare
Cloudflare’s free certificate (Universal SSL) covers the domain and first-level subdomains (*.example.com). It doesn’t cover second-level subdomains (a.b.example.com) — those need a separate certificate.
General recommendations
- When issuing a certificate, always add www too, even if the site runs without www — so the redirect from www goes through without a warning.
- After moving to a new server, check the certificate on every address first thing.
- Added a subdomain? Reissue the certificate straight away or issue a separate one.
FAQ
The site runs without www — why does www need a certificate?
The browser first establishes a secure connection to the www address and only then receives the redirect. If there is no certificate for www, the visitor sees a warning before being redirected.
My host shows a certificate with someone else’s domain. Is it a hack?
No, it usually means SSL isn’t enabled for your site and the server is sending its default certificate. Enable SSL for the domain in the panel.
Is a wildcard certificate better?
It is convenient if you have many subdomains. For an ordinary site, a certificate for the domain and www is enough.