Software

How to Diagnose ERR_SSL_VERSION_OR_CIPHER_MISMATCH

ERR_SSL_VERSION_OR_CIPHER_MISMATCH means browser and server share no TLS version or cipher. Both failures reproduced with OpenSSL, and the server fix.

ERR_SSL_VERSION_OR_CIPHER_MISMATCH means the browser and the server could not agree on a TLS protocol version or a cipher suite both support, so the HTTPS handshake failed before any page data was exchanged. Chromium describes it as: “The client and server don’t support a common SSL protocol version or cipher suite.” It is almost always a server configuration problem: an old server that only offers obsolete TLS 1.0/1.1 or weak ciphers, or a misconfigured certificate.

Both failures, reproduced

Version mismatch: a server that only accepts TLS 1.3, and a client that only offers TLS 1.2:

$ openssl s_server -accept 9445 -cert srv.pem -key srv.key -tls1_3 -www
$ openssl s_client -connect 127.0.0.1:9445 -tls1_2
…:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version:…:SSL alert number 70

Cipher mismatch: a TLS 1.2 server allowing only ECDHE-ECDSA-AES128-GCM-SHA256, and a client offering only ECDHE-ECDSA-CHACHA20-POLY1305:

$ openssl s_client -connect 127.0.0.1:9446 -tls1_2 -cipher ECDHE-ECDSA-CHACHA20-POLY1305
…:SSL routines:ssl3_read_bytes:tls alert handshake failure:…:SSL alert number 40

Matching pair, the same server with a client that accepts its cipher:

New, TLSv1.2, Cipher is ECDHE-ECDSA-AES128-GCM-SHA256

The alert numbers are defined in the TLS specification: 70 is protocol_version and 40 is handshake_failure. Browsers turn both into the same ERR_SSL_VERSION_OR_CIPHER_MISMATCH page; the alert number tells you which half to fix.

DiagnoseWhich part of the handshake failed?

Is it your server?

  • Yes →

    What does openssl s_client -connect HOST:443 -servername HOST report?

    • alert number 70 (protocol version) →

      Enable TLS 1.2 and TLS 1.3.

      Modern browsers no longer accept TLS 1.0 or 1.1. Update the server's protocol setting (nginx: ssl_protocols TLSv1.2 TLSv1.3;) and the TLS library if it is too old for 1.2.

      openssl s_client -connect example.com:443 -servername example.com -tls1_2
      openssl s_client -connect example.com:443 -servername example.com -tls1_3
    • alert number 40 (handshake failure) →

      Does the server have an ECDSA-only or unusual certificate, or a very short cipher list?

      • Yes / not sure →

        Use a standard modern cipher configuration.

        Offer ECDHE with AES-GCM or ChaCha20-Poly1305, and make sure the cipher list matches the certificate's key type (ECDSA suites for an ECDSA key, RSA suites for an RSA key). Generators such as Mozilla's SSL Configuration Generator produce tested settings.

      • No →

        Check the CDN or load balancer in front.

        TLS is often terminated at a CDN or load balancer. A newly added domain without an issued edge certificate, or a TLS policy set too strictly, causes this error even though the origin is fine.

    • It connects fine →

      Check SNI and the hostname the browser uses.

      If s_client works with -servername but the browser fails, the server may present a different certificate or configuration for another hostname, or a CDN may not have a certificate for that name yet.

  • No, a site I'm visiting →

    The site's server is outdated or misconfigured.

    There is little you can safely change. Update your browser and OS; turn off antivirus HTTPS scanning to rule it out; otherwise contact the site. Don't re-enable obsolete protocols in your browser.

What the browser and server negotiate

In the first message of the handshake (ClientHello) the browser lists the TLS versions and cipher suites it supports. The server picks one of each from its own list. If the lists don’t overlap, the server sends a fatal alert instead of a ServerHello. Current browsers support TLS 1.2 and 1.3 only, with cipher suites based on ECDHE key exchange and AES-GCM or ChaCha20-Poly1305 encryption. A server that still only offers TLS 1.0, RC4 or 3DES has nothing in common with them.

Fix checklist for servers

  1. Protocols: enable TLS 1.2 and 1.3; disable SSLv3, TLS 1.0 and 1.1.
  2. Ciphers: use a maintained modern profile rather than a hand-written list.
  3. Certificate key type: an ECDSA certificate needs ECDSA suites; RSA needs RSA suites. Serving both is common.
  4. Library version: very old OpenSSL builds cannot do TLS 1.3, and some cannot do modern TLS 1.2 suites.
  5. Retest with openssl s_client for each version, and with an external scanner after deploying.

If the handshake succeeds but the browser rejects the certificate, the error becomes ERR_CERT_AUTHORITY_INVALID; if the server answers HTTPS with plain HTTP, it becomes SSL_ERROR_RX_RECORD_TOO_LONG.

Sources

  1. net_error_list.h (SSL_VERSION_OR_CIPHER_MISMATCH = −113) — Chromium
  2. RFC 8446: TLS 1.3 (alert codes, section 6) — IETF
  3. RFC 5246: TLS 1.2 — IETF

How we made this

Reproduced in a local lab. Using OpenSSL 4.1.0 we ran s_server restricted to TLS 1.3 and connected with s_client restricted to TLS 1.2, then ran a TLS 1.2 server allowing one cipher suite and connected offering a different one, and finally a matching pair. Error lines are quoted verbatim (internal address prefixes trimmed). Chromium's meaning of the error is taken from net_error_list.h.

Performed by Claude, an AI assistant working in the BinConvert repository (macOS, OpenSSL 4.1.0), November 16, 2026.

This article was drafted with AI assistance. Every example, calculation and command output on this page was re-run or checked before release; each handshake was repeated and the alert numbers checked against RFC 8446. Review: automated test suite and source check, November 16, 2026.

Spotted an error? Tell us and we will correct it.

Copied to clipboard!