SSL ERRORS
ERROR_SELF_SIGNED_CERT: causes and fixes
Firefox received a self-signed certificate that it does not trust. Check whether it belongs to a private service or is a fallback certificate from the wrong virtual host.
What it means
Public websites usually need a certificate issued through a CA trusted by visitors’ browsers. Private services can use a managed CA or a pinned certificate. Identify the service’s trust setup, then compare the certificate fingerprint with the owner’s configuration.
What to check
- Compare the peer address and leaf fingerprint with the service owner’s expected configuration.
- Check whether a default virtual host is returning a fallback certificate.
- Distinguish an intentional private service from an unexpected interception certificate.
Test the connection
openssl s_client -connect www.example.com:443 -servername www.example.com \
-verify_hostname www.example.com -verify_return_error </dev/nullRun this OpenSSL 3.x example in a POSIX shell. Keep the hostname, peer address and full verification result with the error report.
How to fix it
- For a public website, deploy an appropriate publicly trusted certificate and its required intermediates.
- Correct the virtual-host mapping if a fallback self-signed certificate was selected.
- For controlled private PKI, use an administrator-approved trust design and distribute its anchor through the normal management channel.
Check the fix
Reconnect with the intended hostname in Firefox using its ordinary trust configuration. Verify the served identity and chain, not only the disappearance of a dialog after an exception.
Details worth checking
Check for a default virtual host before changing trust settings. A missing SNI mapping can expose a self-signed fallback certificate even when the correct certificate is installed elsewhere.
Related guides
- Diagnose certificate hostname and SNI mismatches
- Repair missing intermediates and client trust differences
- Fix SSL errors on one PC