SSL and HTTPS Problems
SSL certificate name mismatch
Last reviewed
Direct answer
An SSL certificate name mismatch means the certificate’s DNS names do not include the hostname the browser requested—reissue or replace the certificate so the apex, www, and any live subdomains you use appear in the Subject Alternative Name list, then point HTTPS at that cert.
Browsers refuse to trust a certificate that belongs to a different hostname, even when dates and the issuing CA look fine. WordPress sites hit this after domain changes, partial Let’s Encrypt coverage, wrong vhost certificates, or CDN/host mismatches. This Website Repair guide shows how to read the names on the cert, cover every hostname visitors actually type, and clear the interstitial without weakening TLS checks.
Key facts
Verifiable numbers and definitions — each claim links to its source.
- TLS certificates bind a website's keys to domain names so browsers can authenticate that they reached the intended host. (MDN — Transport Layer Security)
- Chrome documents certificate name problems such as ERR_CERT_COMMON_NAME_INVALID among common “connection is not private” errors. (Google Chrome Help — common errors)
- Let's Encrypt issues certificates only after domain control is validated for the names requested via ACME challenges. (Let's Encrypt — challenge types)
What the error means
During TLS, the browser checks that the certificate presented for the TCP connection is valid for the host in the URL. Modern checks use Subject Alternative Name (SAN) DNS entries (legacy commonName alone is not enough to rely on). If you open `https://www.example.com` but the certificate only lists `example.com`—or still lists the old staging domain—Chromium reports errors such as NET::ERR_CERT_COMMON_NAME_INVALID and the UI describes a name mismatch. That is not expiry (CERT_DATE_INVALID) and not “missing HTTPS redirects”; the handshake completed with the wrong identity. Shared hosting and reverse proxies sometimes attach the default server certificate when the vhost or Cloudflare origin hostname is wrong, so visitors see a cert for an unrelated domain on the same IP. Fixing it means installing a certificate that explicitly includes every hostname in use, correcting DNS/vhost mapping so the right cert is selected, and updating WordPress siteurl/home so the site does not send people to an uncovered host.
Common symptoms
- Browser warns that the certificate is not valid for this name / NET::ERR_CERT_COMMON_NAME_INVALID
- Certificate viewer shows SANs that omit the hostname in the address bar
- www works with a valid padlock while the apex (or a subdomain) fails—or the reverse
- After a domain change, HTTPS still presents a certificate for the old domain
- SSL checkers report “certificate name mismatch” or “does not match hostname”
- Direct IP access or a wrong vhost shows another customer’s or the server default certificate
- Cloudflare Full (strict) fails while Flexible/Full appear to “work” with a mismatched origin cert
Most likely causes
- 01 Certificate issued only for example.com while traffic uses www.example.com (or the opposite)
- 02 New domain or subdomain never added to the SAN list before DNS cutover
- 03 Hosting still serving a default or neighbor vhost certificate for the requested Host header
- 04 WordPress/site redirects sending users to a hostname the certificate does not cover
- 05 Stale Cloudflare custom hostname or origin certificate tied to the previous domain
- 06 Wildcard cert expected but not issued (or not installed) for deeper subdomains
- 07 Load balancer or reverse proxy presenting its own cert instead of the site’s certificate
What changed before the problem started
- Primary domain or www preference changed in WordPress, host panel, or DNS
- Site migrated to a new hostname without reissuing SSL
- A staging certificate was left installed on the production vhost
- CDN or Cloudflare proxy enabled for a hostname not on the origin certificate
- Multisite or subdirectory-to-domain mapping added hosts without SAN updates
- AutoSSL ran for one domain in the account but not the alias visitors use
Troubleshooting steps
- 01
Compare the URL hostname to the certificate SAN list
Open the certificate from the browser warning and list every DNS name. Write down the exact host you typed (including www vs apex and any shop/subdomain). The fix is covering those strings—not restarting PHP.
- 02
Decide the canonical hostnames that must stay on HTTPS
Pick the live set: apex, www, and any required subdomains (e.g. `shop.`). Update DNS and WordPress URL settings toward that set so you are not maintaining surprise hostnames that never get certificates.
- 03
Reissue a certificate that includes every required SAN
Use AutoSSL, Let’s Encrypt, or your CA portal to request a cert covering all chosen names (or a wildcard where appropriate and supported). Wait until validation succeeds for each name before calling the job done.
- 04
Install the certificate on the correct vhost / Cloudflare origin
Bind the new cert to the site’s virtual host or load-balancer listener. On Cloudflare, ensure custom hostnames or origin certs match what Full (strict) expects. Remove leftover staging certificates from the production server block.
- 05
Align redirects so users only hit covered hostnames
After the cert is valid, keep a single HTTP→HTTPS and apex↔www policy that lands on a hostname present in the SAN list. A redirect to an uncovered host recreates the mismatch instantly.
- 06
Retest each hostname from a private window
Load https for apex, www, and critical subdomains. Confirm the padlock shows the new certificate names and that WordPress admin and checkout follow the same host.
When to stop troubleshooting
Escalate if the host panel will not let you add SANs, DNS for validation is controlled by another party, a reverse proxy you cannot configure keeps presenting the wrong cert, or ecommerce is down across multiple hostnames and you lack access to both Cloudflare and origin SSL. Provide the requested hostname, the SAN list from the failing certificate, and where DNS currently points.
Information to collect before requesting help
- 01 Exact hostname in the address bar when the warning appears
- 02 SAN / CN list from the presented certificate
- 03 Whether apex, www, and subdomains behave differently
- 04 Certificate issuer and where it is managed (host, Cloudflare, external CA)
- 05 Recent domain, DNS, or migration changes
- 06 Cloudflare proxy status and SSL/TLS mode, if any
- 07 WordPress Address / Site Address values
How a professional repairs the problem
We inventory every hostname that must work, reissue a certificate with matching SANs, correct vhost or Cloudflare origin binding so the right cert is served, and align redirects and WordPress URLs to those names. We verify apex, www, admin, and checkout on HTTPS before closing the mismatch.
Frequently asked questions
Is a name mismatch the same as an expired certificate? +
Why does www work but the bare domain does not? +
Can I just ignore the warning for my own admin work? +
Does installing any Let’s Encrypt cert fix the mismatch? +
Will changing WordPress siteurl alone fix this? +
How is this different from “Not secure” mixed content? +
Repair dispatch
Still Need Help Fixing Your Website?
If you are not comfortable editing website files, changing server settings, repairing a database, or troubleshooting a live website, professional help may prevent additional damage or downtime. We will review the problem before accepting the repair.
- You will receive a clear explanation of the likely cause.
- We will tell you if the issue falls outside our repair scope.
- No additional work will be performed without approval.
- A backup should be created whenever access and website condition allow it.
Do not share passwords through an unencrypted contact form — use Password Pusher (self-destructing link). Prefer a dedicated Rescue 404 admin account, not your personal owner login; if you cannot create one yet, we will add ours after repair.