Guides · ← All guides
Certificate Name Mismatch: Why the Cert Does Not Match Your Domain
Published: November 14, 2026 · Last reviewed: November 14, 2026 · 6 min read
Run a free BreachHunter assessment on your site →
Of all TLS findings, mismatch produces the most confusing support tickets, because everyone involved can truthfully say “the certificate is installed”. It is — on the wrong name, or covering three of your four hostnames, or left over from the previous tenant of a shared IP. The browser's complaint is precise; the path to it runs through the details of how names get onto certificates.
This guide explains the SAN mechanics the check validates, the four recurring scenarios that produce mismatches (migration leftovers, CDN provisioning gaps, apex/www asymmetry, wildcard limits), and the inventory habit — every public hostname mapped to the certificate that serves it — that prevents the next one.
What the TLS check actually compares
Modern certificates carry their valid names in the Subject Alternative Name extension — a list like example.com, www.example.com, shop.example.com. The check (and every browser) connects to a hostname, reads the presented certificate, and asks: is this exact name on the list, or covered by a wildcard entry (*.example.com covers one level — shop.example.com yes, eu.shop.example.com no)? If not, the connection is refused as a mismatch regardless of how trustworthy the issuer is.
That precision explains the classic near-misses. A wildcard bought for *.example.com does not cover the bare apex example.com — the single most common mismatch in the wild, sitting on the version of the domain half your printed material uses. A multi-name cert missing the newest subdomain, a cert for the .com when the campaign uses the .co — each is a list problem, and the TLS phase reports it with the names the certificate actually carries, so the gap is readable at a glance in the report.
The four scenarios that mint mismatches
Migration leftovers: the new server presents the old project's certificate (shared images and copied configs are the usual vehicles) — the site “works” for the team testing by IP or hosts-file tricks and fails for the public name. CDN onboarding: the edge provisions its cert for www but the apex points at the origin, whose cert expired into a default. Vhost sprawl: one server, many sites, SNI misconfigured or a default vhost whose cert answers for names it does not hold. And the wildcard-depth trap described above, usually discovered by the first visitor to a two-level subdomain.
The prevention is an inventory line per hostname — name, certificate, issuer, expiry, SAN list — reviewed at every migration and CDN change, and an external check that connects by name to every variant (apex, www, key subdomains) exactly as the assessment does. Mismatch is embarrassing precisely because it is so checkable: the scan finds in seconds what the launch checklist should have.
Worked example: truenorthinsurance.example
True North Insurance, a regional broker, launched a redesigned site on a new host. Staff tested via the www address, which worked. The assessment connected to the bare apex — the address on the firm's trucks, cards and radio ads — and the TLS module reported the default server certificate, issued for the host's own machine name, presented for truenorthinsurance.example.
TLS check: truenorthinsurance.example (apex) Presented cert SANs: [server14.hosting-provider.example] Hostname match: NO -> Finding: certificate name mismatch (www variant: correct certificate, match YES)
The host's default vhost had been answering the apex because the site's certificate was only bound to the www vhost. Binding the real certificate to the apex (and redirecting apex to www as the firm intended) closed it; the retest showed matching certificates on both variants. The broker added “check apex and www by name, from outside” to its launch checklist — in the owner's words, “the version of our name we print on trucks was the broken one, and only the scanner knocked on that door.”
The five actions to take
Making mismatch structurally unlikely:
- List every public hostname — apex, www, subdomains — and the certificate each one serves, in one inventory.
- Confirm each served certificate's SAN list includes its hostname (remember: a wildcard covers one level and not the apex).
- Test by name, from outside, for every variant after migrations, CDN changes and certificate renewals.
- Bind certificates deliberately per vhost; eliminate default-vhost answers for names you own.
- Let scheduled scans watch all variants — renewals replace certificates and can silently drop a name.
Run a free BreachHunter assessment on your site →
Frequently asked questions
Our site loads fine. How can the certificate be wrong?
Because “our site” is several hostnames. The variant you test (usually www) can be perfect while the apex or a subdomain serves a different certificate. Browsers check per-connection, per-name — and so does the scan, which is why it tests the variants separately.
Does a wildcard certificate cover the apex domain?
No. *.example.com covers one level of subdomain (www, shop) but not example.com itself, and not two levels (eu.shop.example.com). Apex coverage must be listed as its own SAN entry. This single fact accounts for a large share of mismatch findings.
Is a mismatch a security risk or just an availability bug?
It is both: visitors who proceed past the warning (or are trained to) are being taught to ignore the exact signal a real man-in-the-middle produces. Browsers treat it as a security failure because, from the client's seat, a wrong-name certificate is indistinguishable from an attack.
The certificate came from our host's auto-provisioning. Whose fix is it?
The host's tooling issued it; the binding to your vhost is usually yours or your developer's to verify. Practically: the inventory and external testing are yours regardless — providers provision what is configured, and the configuration's correctness is what the scan grades.
Can one certificate cover all our names?
Often yes — multi-name (SAN) certificates and wildcards-plus-apex combinations exist for exactly this. The design constraint is operational: one shared certificate couples renewals across sites. Either design passes the check; what fails is a name with no covering certificate at all.
Sources
Where this guide's claims come from, in citable form:
- RFC 6125 (2011) — how applications verify a certificate's identity against the requested name.
- CA/Browser Forum Baseline Requirements (current version, 2024) — the issuance rules every public certificate authority must follow.