Firefox Error Code SSL_ERROR_BAD_CERT_DOMAIN
The certificate is not valid for this host name.
The certificate is not valid for this host name.
| Code | SSL_ERROR_BAD_CERT_DOMAIN |
| Product | Firefox |
| Company / origin | Mozilla · United States |
| Category | Web Browsers |
| Platform / versions | Firefox desktop · Current stable channel |
| Severity | error |
| Official source | Mozilla Support: Secure connection failed ↗ |
| Last verified | 2026-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
- Step 1
Open the certificate viewer and compare the SAN list with the URL host.
- Step 2
Use the canonical host name that the certificate covers.
- Step 3
If a proxy or CDN is involved, fix its TLS certificate or host mapping.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
SEC_ERROR_EXPIRED_CERTIFICATE | Expired Certificate | The server certificate has expired. |
NS_ERROR_NET_TIMEOUT | Network Timeout | The 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.