SSL Certificate Name Mismatch in WordPress

SSL Certificate Name Mismatch in WordPress

A visitor opens a valid site address but the browser reports that the certificate belongs to another name. Because hostname verification happens during TLS, a WordPress redirect cannot correct the error.

Decide which hostnames the site must accept, make each one TLS-valid, and only then redirect alternate names to the canonical address.

Table of contents

  1. What it means
  2. A realistic WordPress example
  3. Why it matters and when to use it
  4. A straightforward route for beginners
  5. The advanced route
  6. Risks, common mistakes, backup, and rollback
  7. How AIOWS helps: AIOWS SSL Manager
  8. Related AIOWS articles
  9. Conclusion and recommended route
  10. Official sources

What it means

A name mismatch occurs when the requested hostname is absent from the certificate Subject Alternative Name list, or when the server presents the wrong certificate for that SNI name. The certificate must match before the browser sends an HTTP request.

A wildcard covers only the level it represents. For example, a wildcard for subdomains does not automatically cover the apex domain or a deeper nested name.

A realistic WordPress example

Visitors to shop.example.comreceive a certificate issued only for example.com. The CDN alias points to a default virtual host, so the redirect from the shop hostname to the apex never runs.

Adding the required name to the certificate and binding it to that CDN hostname fixes TLS. The HTTP redirect can then send visitors to the canonical address safely.

Why it matters and when to use it

A mismatch is an identity failure, not a cosmetic warning. Ignoring it or disabling hostname checks can expose visitors and integrations to impersonation.

Use this diagnosis when the browser names the wrong host, when only one subdomain fails, or when behavior differs between IPv4, IPv6, the CDN, and the origin.

A straightforward route for beginners

  1. Copy the exact hostname from the failing URL.
  2. Inspect the certificate served for that hostname and compare its SAN list.
  3. Check the apex, www, and every public subdomain separately.
  4. Confirm that DNS and CDN aliases point to a service configured for that name.
  5. Issue or select a certificate containing the required hostnames and bind it to the correct listener.
  6. After TLS succeeds, test the canonical redirect and a deep URL.

The advanced route

Query every active IPv4 and IPv6 address with the intended SNI value. Compare the presented serial, SANs, chain, virtual-host selection, and edge-to-origin path. A no-SNI request can help identify the default certificate, but it is not a substitute for the real client path.

Keep certificate coverage deliberate. Include only hostnames the service owns, configure strict default-host behavior, and confirm OAuth callbacks, webhooks, cookies, and sitemap URLs after canonicalization. A deliberately unsupported hostname should not expose another tenant or site.

Risks, common mistakes, backup, and rollback

Do not assume that a wildcard covers every hostname, and do not rely on a redirect to fix a pre-HTTP error. Loose default virtual hosts can expose the wrong certificate or application.

Save existing DNS records, CDN mappings, certificates, and listener bindings before changing them. If a new certificate or route disrupts a working hostname, restore its previous binding while you correct the intended host mapping.

How AIOWS helps:

AIOWS SSL Manager

AIOWS SSL Manager can help inspect supported WordPress-side HTTPS settings after each accepted hostname completes TLS successfully. It is useful for checking that WordPress uses the intended canonical address and serves application paths correctly over HTTPS.

Certificate issuance, SAN coverage, DNS aliases, SNI routing, and CDN or server bindings are external controls. AIOWS cannot make an uncovered hostname valid or select the correct certificate at the edge.

Once infrastructure is fixed, use SSL Manager to review the WordPress URLs and test redirects, administration, assets, forms, and callbacks. Keep the hostname tests themselves outside WordPress so every public address and active network path is covered.

Explore AIOWS SSL ManagerCompare AIOWS plans

Conclusion and recommended route

Give every supported hostname valid certificate coverage and the correct SNI binding before applying HTTP redirects. Then canonicalize alternate names and reject hostnames the service does not own.

Official sources

Related Posts

Get All in One WP SettingsGet Plugin