Skip to content
SSL Error · Firefox

Certificate domain mismatch (Firefox)

SSL_ERROR_BAD_CERT_DOMAIN

Firefox's name-mismatch error: the certificate doesn't cover the hostname you're visiting.

What it means

SSL_ERROR_BAD_CERT_DOMAIN is Firefox's version of a hostname mismatch. The certificate is valid and trusted, but the name in the address bar isn't among the names the certificate was issued for, so Firefox refuses to apply it to this connection. It's the same underlying problem Chrome reports as a common-name error.

When it happens

Typical triggers are a certificate that covers the apex but not www (or vice versa), a wildcard used on a domain it doesn't cover, or a shared-hosting server returning the wrong default certificate for the requested hostname. It also appears right after a domain change when the new name isn't on the certificate yet.

How to fix it

  1. Reissue the certificate to include every hostname in use, both the apex and the www form.
  2. Keep in mind a wildcard covers subdomains but not the bare domain, so add the apex separately if needed.
  3. On multi-site servers, confirm Server Name Indication is set up so each hostname gets the right certificate.
  4. Check the served certificate's name list against the hostname after reissuing.
Check it with Sitewell

Check this site’s certificate

Paste the domain and Sitewell shows the certificate’s expiry, the hostnames it covers, the chain, and the issuer — enough to pin down what triggered this error. Free, no signup.

Related errors