Firefox · Certificate Name Mismatch

Firefox Error Code SSL_ERROR_BAD_CERT_DOMAIN

The certificate is not valid for this host name.

errorLast verified 2026-11-10Mozilla Support: Secure connection failed
Quick answer

The certificate is not valid for this host name.

CodeSSL_ERROR_BAD_CERT_DOMAIN
ProductFirefox
Company / originMozilla · United States
CategoryWeb Browsers
Platform / versionsFirefox desktop · Current stable channel
Severityerror
Official sourceMozilla Support: Secure connection failed ↗
Last verified2026-11-10

What does Firefox error SSL_ERROR_BAD_CERT_DOMAIN mean?

SSL_ERROR_BAD_CERT_DOMAIN means the certificate is valid but does not cover the host name in the URL. The certificate may be missing a SAN, the request may use the wrong host, or a proxy may be terminating TLS with a different certificate.

Common causes

  • The certificate's SAN list does not include the requested host.
  • The site is accessed through an IP address or alias that is not on the certificate.
  • A proxy or CDN is serving a certificate for another host.

How to fix it

  1. Step 1

    Open the certificate viewer and compare the SAN list with the URL host.

  2. Step 2

    Use the canonical host name that the certificate covers.

  3. Step 3

    If a proxy or CDN is involved, fix its TLS certificate or host mapping.

When to escalate

Before you escalate: If the same Firefox error persists in Troubleshoot Mode, with another network, and with another browser, record the exact code, the URL, the certificate details from the error page, and the Firefox version before contacting the site owner or Mozilla support.

Related codes

CodeNameWhat it means
SEC_ERROR_EXPIRED_CERTIFICATEExpired CertificateThe server certificate has expired.
NS_ERROR_NET_TIMEOUTNetwork TimeoutThe connection timed out before a response arrived.

Source & verification

This page was checked against Mozilla Support: Secure connection failed on 2026-11-10. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.

Open Error Codes is independent and not affiliated with Mozilla. Always confirm destructive or security-sensitive steps with the official documentation.