# Firefox: Warning: Potential Security Risk Ahead

> Firefox could not confirm the website's certificate.

## Quick answer

Firefox checks each site's certificate, its digital ID. This warning means the check failed: the certificate may be expired, for another name or from an unknown issuer. The error code under Advanced tells you which. Usually the website must fix it.

When to wait: Waiting does not help; the certificate must be fixed.

## If you are visiting the website

1. **Go back** Choose the "Go Back" button on the warning page. It is the safe choice while you find the cause.
2. **Read the error code** Click Advanced to see the code. SEC_ERROR_EXPIRED_CERTIFICATE points to dates. SEC_ERROR_UNKNOWN_ISSUER points to an untrusted issuer. SSL_ERROR_BAD_CERT_DOMAIN means a wrong name. MOZILLA_PKIX_ERROR_MITM_DETECTED means something on your side is intercepting the connection.
3. **Check your device's date and time** Expired-certificate codes on many sites usually mean your clock is wrong. Turn on automatic time and reload.
   - Windows: Start > Settings > Time & language > Date & time. Turn on "Set time automatically".
   - macOS: Apple menu > System Settings > General > Date & Time. Turn on "Set time and date automatically".
   - Android: Settings > System > Date & time. Turn on "Set time automatically".
   - Linux: Run `timedatectl status`. If "System clock synchronized" says no, run `sudo timedatectl set-ntp true` on systemd-based systems.
4. **Check antivirus HTTPS scanning** Mozilla names SSL scanning in security software as a common cause, especially for MOZILLA_PKIX_ERROR_MITM_DETECTED. Pause that feature for one reload, then turn it back on and update the program.
5. **Try another network** Company networks and public Wi-Fi login pages can present their own certificates. Test on mobile data or after signing in to the Wi-Fi.
6. **Tell the website owner** If the warning appears on every device and network, the site's certificate is at fault. Send the owner the code from the Advanced section.

## If you run the website

1. **Match the fix to the code** Expired: renew with `sudo certbot renew` and reload. Unknown issuer: serve the full chain or use a public authority. Bad domain: add the missing hostname to the certificate.
2. **Check what Firefox receives** Run `openssl s_client -connect example.com:443 -servername example.com -showcerts` and pipe your certificate into `openssl x509 -noout -dates -subject -issuer`. Check dates, names and that intermediates are sent.
3. **Serve the full chain** In nginx the `ssl_certificate` file must hold your certificate first, then the intermediates. With Certbot use `fullchain.pem`.
4. **Test renewal** Run `sudo certbot renew --dry-run` and make sure the web server reloads after each renewal.

## Is it the website or me?

If many sites show this warning at once, look at your device first: the clock, antivirus HTTPS scanning or a company network.

If only one site shows it, everywhere, the site's certificate is the problem.

## What this warning is not

It does not mean your computer has a virus. It means Firefox could not confirm the identity of the site.

It is also different from "Secure Connection Failed", where the secure connection could not be set up at all.

## Why Firefox can behave differently from Chrome

Firefox shows its own codes and has its own security checks. A site can therefore pass in one browser and fail in another.

Always fix the cause the code names rather than switching browsers to avoid the warning.

## Common questions

### Is it safe to click past the warning?

Not for any site with logins, payments or personal data. Firefox cannot confirm who you are talking to. Only consider it for your own test device on your own network.

### What does MOZILLA_PKIX_ERROR_MITM_DETECTED mean?

Mozilla describes it as a special case of an unknown issuer, where something between you and the site is intercepting the connection. Security software that scans HTTPS is a common reason.

### Why do I see this warning on every website?

Then the cause is on your side. Check the clock first, then security software and any company network or proxy.

### Will clearing cookies make the warning go away?

No. The warning comes from the certificate check, not from cookies.


## Likely causes

- The website's certificate is expired or misconfigured. (common, owner side)
- Your clock is wrong. (sometimes, visitor side)
- Antivirus or a company network intercepts HTTPS. (sometimes, visitor side)

## What to avoid

- Do not accept the risk to enter passwords or payment details.

## Related messages

- [NET::ERR_CERT_AUTHORITY_INVALID](https://checkwebsitenow.com/errors/net-err-cert-authority-invalid)
- [NET::ERR_CERT_DATE_INVALID](https://checkwebsitenow.com/errors/net-err-cert-date-invalid)
- [Secure connection or certificate error](https://checkwebsitenow.com/errors/tls-certificate-error)

## Sources

- [Mozilla Support: Secure connection and security warning error pages in Firefox](https://support.mozilla.org/en-US/kb/secure-connection-failed-firefox-did-not-connect)
- [Mozilla Support: What do the security warning codes mean?](https://support.mozilla.org/en-US/kb/what-does-your-connection-is-not-secure-mean)
- [OpenSSL: s_client manual](https://docs.openssl.org/master/man1/openssl-s_client/)
- [Certbot documentation: User Guide](https://eff-certbot.readthedocs.io/en/stable/using.html)
- [Linux man page: timedatectl(1)](https://man7.org/linux/man-pages/man1/timedatectl.1.html)
- [OpenSSL: x509 manual](https://docs.openssl.org/master/man1/openssl-x509/)

Last updated: 2026-10-07. Check a website now: https://checkwebsitenow.com/?check=example.com
