BreachHunter
Pricing Blog Log inSign up
● thermal huntscan engines onlineassessment only — no exploits
  1. Home
  2. Blog
  3. Certificate Name Mismatch: Why the Cert Does Not Match Your Domain

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

By the Ingenious AI team

The short answer: A certificate name mismatch means the certificate presented for your domain does not list your domain among its valid names (the Subject Alternative Names). Browsers refuse with a name-mismatch error that looks identical to an attack warning to your visitors. BreachHunter's TLS module verifies the served certificate against the hostname it connected to, as a distinct check from expiry: a cert can be unexpired, properly chained, and still wrong for your site — most often after a migration, a CDN change, or on the www-versus-apex variant nobody tested.

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:

  1. List every public hostname — apex, www, subdomains — and the certificate each one serves, in one inventory.
  2. Confirm each served certificate's SAN list includes its hostname (remember: a wildcard covers one level and not the apex).
  3. Test by name, from outside, for every variant after migrations, CDN changes and certificate renewals.
  4. Bind certificates deliberately per vhost; eliminate default-vhost answers for names you own.
  5. 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.
Share this: X · Facebook · LinkedIn · WhatsApp

Related guides

  • Website Security Test: What It Checks, What It Misses, and How to Read Yours · 9 min read
  • Website Security Cheat Sheet: Headers, TLS, Cookies and Exposed Files · 7 min read
  • What a Website Security Assessment Actually Tests · 10 min read
  • TLS/SSL Basics: What Your Certificate Says About Your Site · 8 min read
  • Common Website Misconfigurations (and How to Fix Them) · 11 min read
  • Reading Your First Pentest Report: From Score to Action · 9 min read
  • Deleted ≠ Gone: What the Wayback Machine Keeps After You Delete Your Secrets · 9 min read
  • SQL Injection in Plain English: How One Login Box Can Read Your Database · 9 min read
  • What Does a Website Security Scan Check? · 8 min read
  • Exposed .git Directory: What It Leaks and How to Check · 7 min read
  • Security Headers Missing? What Each Header Stops · 7 min read
  • How Much Does a Penetration Test Cost in 2026? · 7 min read
  • Website Security Checklist for Small Teams (60-second self-check) · 6 min read
  • Reading Your Scan Results: Which Findings Fix First? · 7 min read
  • Content-Security-Policy Missing: What CSP Does and How to Add It Safely · 8 min read
  • HSTS Missing: What Strict-Transport-Security Prevents · 7 min read
  • Clickjacking and X-Frame-Options: How Framing Attacks Work · 7 min read
  • Cookie Flags Explained: Secure, HttpOnly and SameSite · 8 min read
  • Exposed .env File: What Leaks, What Attackers Do Next, What You Do First · 8 min read
  • Directory Listing Enabled: What It Shows Attackers and How to Disable It · 7 min read
  • Mixed Content: Why Your HTTPS Page Still Loads Insecure Resources · 7 min read
  • Expired SSL Certificate: What Breaks, Why Renewal Fails, and How to Catch It Early · 7 min read
  • TLS 1.0 and 1.1 Still Enabled: Why Old Protocols Show Up as a Finding · 7 min read
  • Open Ports on a Web Server: Which Ones Should Never Face the Internet · 8 min read
  • No SPF or DMARC Record: How Missing Email Auth Exposes Your Website · 7 min read
  • Subdomain Takeover: How a Dangling DNS Record Lets Attackers Claim Your Name · 7 min read
  • Forgotten Subdomains: The Staging Site You Forgot Is Still Public · 7 min read
  • WordPress Security Scan: The Exposures an Assessment Finds on WordPress Sites · 8 min read
  • Exposed Backup Files: .bak, .old and .zip Files Sitting in Your Web Root · 7 min read
  • phpinfo() in Production: The Diagnostic Page That Maps Your Server for Attackers · 7 min read
  • Server Version Banners: Why Your Headers Point Attackers to the Right Exploit · 7 min read
  • End-of-Life Software: Running a Server Stack Nobody Patches Anymore · 7 min read
  • CORS Misconfiguration: When Cross-Origin Sharing Opens Your Data to Any Site · 7 min read
  • Open Redirect Vulnerability: How Your Own Domain Sends Visitors to a Phishing Page · 7 min read
  • Dangerous HTTP Methods: What TRACE, PUT and DELETE Should Never Answer · 7 min read
  • Host Header Injection: Poisoned Reset Links and Cache Attacks Explained · 7 min read
  • What Is security.txt? The Small File That Lets Researchers Reach You · 6 min read
  • Admin Panel Exposed to the Internet: What an Assessment Flags and Why · 7 min read
  • phpMyAdmin Exposed: Why This Database Door Is a Prime Brute-Force Target · 7 min read
  • Spring Boot Actuator Exposed: Environment Dumps, Heap Leaks and Shutdown Endpoints · 7 min read
  • Debug Console in Production: The Finding That Can Become Code Execution · 7 min read
  • Exposed AWS Credentials File: The /.aws/credentials Finding, Explained · 7 min read
  • Referrer-Policy and Permissions-Policy: The Two Quiet Headers You Are Probably Missing · 6 min read
  • Exposed package.json: Your Dependency List Is a Recon Gift · 6 min read
  • DNS Zone Transfer Open (AXFR): Handing Out Your Entire DNS Map · 6 min read
  • Website Security Assessments for Agencies: Checking Every Client Site Without a Security Team · 8 min read
  • SaaS Security Questionnaires: What Buyers Check About Your Website First · 8 min read
  • Ecommerce Website Security: The Exposures That Put Your Checkout at Risk · 8 min read
  • Small Business Website Security: The Checks That Matter at Your Size · 7 min read
  • How to Prepare for a Website Security Assessment (and Read the Report Calmly) · 7 min read
  • Vulnerability Severity Explained: What Critical, High, Medium and Low Actually Mean · 7 min read
  • Retest After Fixes: How to Prove a Security Finding Is Actually Closed · 7 min read
  • Security Assessment vs Vulnerability Scan vs Pentest: What Is the Difference? · 7 min read
  • How Long Does a Website Security Scan Take? · 6 min read
  • Website Security Drift: Why Last Month's Clean Scan Is Already Out of Date · 7 min read
  • WordPress Site Keeps Getting Hacked After Cleanup · 8 min read
  • Google Blacklist Removal: Getting the Red Warning Off Your Site · 8 min read
  • VirusTotal Flagged My Site: How to Clear a False Positive · 8 min read

Related from the Ingenious AI suite

  • Ingenious AI — the full suite of security and compliance tools
  • DomainGuard — domain impersonation and typosquat defense
  • See BreachHunter pricing →
BreachHunter · by Ingenious AI · read-only security assessment — scan only targets you own or are authorized to test
About · Contact · Blog · vs Intruder · Privacy · Terms · Security · Threats · Nextcloud Check · Verify Evidence · Help · Redeem
More from Ingenious AI:
DisclosureGuard — AI disclosure compliance · Vibe-Code Audit — AI code security scanner · Rogue-Agent Defense — AI agent firewall · ChatBreaker — AI chatbot red-teaming · ModelMinder — AI model deprecation radar · TermsWatch — AI vendor terms monitor · Agent Flight Recorder — tamper-evident agent audit trails · Agent Auth Gateway — agent credentials & kill switch · DomainGuard — domain impersonation defense · Agent Passport — Know-Your-Agent registry · AgentGate — agent policy publisher · AgentBlock — AI agent & crawler access control · BoundaryVault — agent log forensics · Agentic Receipts — verifiable agent payment receipts · EvalEgress — eval-to-production exposure scan · HomeShield MCP — home AI server exposure check · WireWatch — payment verification ceremony · ADMT Notice Kit — AI decision notice compliance · DueLadder — human-approved invoice chasing · Agent-Ready Store Audit — can AI agents buy from your store · ContentCraft AI — content operations · AgentReady — agent-readiness checks · AI Audit Exchange — AI audit exchange · CallbackShield — callback & webhook protection · CompanionGuard — AI companion safety guardrails · CRAClock — EU Cyber Resilience Act deadline clock · EInvoice Translator — e-invoice format translator · GEOFixer — geo & local listing fixes · MandateGuard — agent spending mandates · OutcomeMeter — AI outcome measurement · ProvenanceGuard — content provenance checks · ReviewDesk — review response desk · ReviewProof — verified review evidence · TakedownCoop — coordinated phishing takedowns · TrustGate — trust & safety gating · BreachHunter — website penetration testing · All 36 platforms — the Ingenious AI portfolio

We use cookies. Necessary cookies keep the site working. With your permission we also use analytics cookies (to understand usage) and marketing cookies (for ads). Read our privacy policy.

NecessaryRequired for login, security and core features. Always on.
AnalyticsHelps us understand which pages are useful.
MarketingUsed for advertising and measuring ad performance.

    No match. Try “pricing”, “php2shell” or “contact” — or press Esc to close.

    ↑↓ navigate · Enter open · Esc close