What the Error Means
At the start of a TLS handshake, the browser lists the protocol versions and cipher suites it accepts. The server picks one of each from that list. If nothing on the server's side matches, the handshake stops, and Firefox shows a "Secure Connection Failed" page with this code and a note that no common encryption algorithm was found. Firefox spells "cypher" this way in the code. Chrome shows the same situation as ERR_SSL_VERSION_OR_CIPHER_MISMATCH.
What a Visitor Can Try
- Update Firefox: a very old browser may lack the ciphers the server wants.
- Try another network: a filtering proxy or security software can interfere with the handshake.
- Do not lower the browser's security settings to get in. If every current browser fails, the server needs fixing, and the owner should know.
Common Causes on the Server
- Only old protocols: the server allows TLS 1.0 and 1.1 only. Current browsers no longer accept them by default, and Firefox may then show a version error instead of this one.
- An outdated cipher list: a custom list copied years ago that names only ciphers browsers have dropped.
- A broken cipher string: a typo can leave the server with very few usable ciphers, or none.
- Key type and ciphers do not match: for TLS 1.2, an ECDSA certificate with a list that holds only RSA cipher suites, or the reverse.
- An old TLS library or appliance: software that cannot offer TLS 1.2 or later.
- A proxy in front: a load balancer or CDN with its own TLS policy answers the browser, not your web server.
Test the Server from Linux
openssl s_client -connect example.com:443 -servername example.com -tls1_2 </dev/null
openssl s_client -connect example.com:443 -servername example.com -tls1_3 </dev/null
A working version prints the certificate chain and the protocol and cipher it agreed on; a failing one ends with a handshake failure. To list everything the server offers:
nmap --script ssl-enum-ciphers -p 443 example.com
Run nmap only against your own servers. More options are in openssl s_client and Nmap commands.
Fix It in Nginx
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers off;
Remove an old custom ssl_ciphers line, or replace it with a current list from a maintained source such as Mozilla's SSL configuration generator. Without that line, current Nginx uses its built-in default list. Check every place the directives appear: the http block and each server block that listens on the same address, because Nginx can take ssl_protocols from the default server of that address. Test and reload:
sudo nginx -t && sudo systemctl reload nginx
Fix It in Apache
SSLProtocol -all +TLSv1.2 +TLSv1.3
Remove old SSLCipherSuite lines that name only legacy ciphers, or replace them with a current list. Then test and reload:
sudo apachectl configtest
sudo systemctl reload apache2
On AlmaLinux and Rocky Linux the service is httpd. Those systems also apply a system-wide policy for protocols and ciphers, which can explain why a cipher you listed is not offered.
Check the Certificate's Key Type
openssl x509 -in /etc/letsencrypt/live/example.com/cert.pem -noout -text | grep 'Public Key Algorithm'
If it says id-ecPublicKey, the cipher list needs ECDSA suites; for rsaEncryption, RSA suites. A generated configuration covers both.
Related Errors
- SSL handshake failed: the same family of problems seen from other clients.
- Cloudflare error 525: the handshake fails between Cloudflare and your origin.
- What is SSL/TLS: how the handshake works.