ERR_SSL_VERSION_OR_CIPHER_MISMATCH and SSL_ERROR_NO_CYPHER_OVERLAP

12 min readUpdated

SSL_ERROR_NO_CYPHER_OVERLAP in Firefox and ERR_SSL_VERSION_OR_CIPHER_MISMATCH in Chrome name the same kind of failure: the browser and the server found no protocol version or cipher suite they both accept, so the TLS handshake stopped before an encrypted connection could start [1][3]. Both codes are listed among the SSL certificate errors browsers show, yet no certificate is involved: the server gives up before it would send one [5]. Our test servers produced it with three settings: only TLS 1.0 or 1.1 allowed, only suites the browsers do not accept, or only suites for a different type of key than the certificate holds. On the browser side, changed security settings in Firefox produced it as well [10]. The fix is to enable TLS 1.2 and TLS 1.3 with a current cipher list on the server, not to make the browser accept less.

Quick facts

Chrome
This site can’t provide a secure connection, <host> uses an unsupported protocol., code ERR_SSL_VERSION_OR_CIPHER_MISMATCH; under Details: Unsupported protocol, The client and server don't support a common SSL protocol version or cipher suite. The code is Chromium's, and Microsoft Edge is built on Chromium [1][2][9][10]
Net error number
-113 in Chromium's list of network errors [1]
Firefox
Secure Connection Failed, Cannot communicate securely with peer: no common encryption algorithm(s)., code SSL_ERROR_NO_CYPHER_OVERLAP; when only the protocol version fails, SSL_ERROR_PROTOCOL_VERSION_ALERT or SSL_ERROR_UNSUPPORTED_VERSION [3][4][10]
What failed
negotiation of the protocol version or cipher suite, before the server sent its certificate [5][10]
Who fixes it
the site owner; the visitor only when Firefox offers Restore default settings [4][10]

What the error means

Every HTTPS connection begins with a TLS handshake. The browser's first message lists the protocol versions and cipher suites it supports, and the server picks one of each from its own settings. When the two have nothing in common, the server must end the handshake with a fatal alert: RFC 9846, section 4.2.1, names handshake_failure and insufficient_security for a failed negotiation [5]. Against a browser that offers no version it allows, our test server sent protocol_version [10]. The certificate would come later in the handshake, so this is a different problem from trust errors such as ERR_CERT_AUTHORITY_INVALID or an expired certificate under ERR_CERT_DATE_INVALID.

Chrome reports a version failure and a cipher failure with one code. Chromium maps the no-shared-cipher error, the protocol_version and insufficient_security alerts and an unsupported protocol to ERR_SSL_VERSION_OR_CIPHER_MISMATCH. A handshake_failure alert gets the same code only when it answers the browser's first message; later in the handshake it becomes ERR_SSL_PROTOCOL_ERROR [1].

Why it appears when nothing changed on the server

Often nothing changed on the server. Browsers drop old versions and suites over time. Chromium's list of network errors notes that TLS 1.0 and 1.1 now cause this code, and it keeps a separate code for a suite that "has since been removed", signalled temporarily, on a fallback, for one or two releases after the removal [1]. Firefox names TLS 1.2 "the minimum version supported by Firefox" on its error page [4]. A server set up long ago keeps offering what it always offered, until a browser update leaves no overlap.

SSL_ERROR_NO_CYPHER_OVERLAP in Firefox

Firefox shows SSL_ERROR_NO_CYPHER_OVERLAP on its Secure Connection Failed page. On our test server the page read "An error occurred during a connection to" the site, then "Cannot communicate securely with peer: no common encryption algorithm(s)." and "Error code: SSL_ERROR_NO_CYPHER_OVERLAP". The only button was Try Again [3][4][10].

Unlike Chrome, Firefox tells the two causes apart. These are the codes our test servers produced [10]:

SSL_ERROR_NO_CYPHER_OVERLAP in Firefox
Server allowsChromeFirefox
only TLS 1.0, or only TLS 1.1ERR_SSL_VERSION_OR_CIPHER_MISMATCHSSL_ERROR_PROTOCOL_VERSION_ALERT
TLS 1.2 with DHE key exchange onlyERR_SSL_VERSION_OR_CIPHER_MISMATCHSSL_ERROR_NO_CYPHER_OVERLAP
TLS 1.2 with ECDSA suites only, RSA certificateERR_SSL_VERSION_OR_CIPHER_MISMATCHSSL_ERROR_NO_CYPHER_OVERLAP
TLS 1.2 with RSA suites only, ECDSA certificateERR_SSL_VERSION_OR_CIPHER_MISMATCHSSL_ERROR_NO_CYPHER_OVERLAP
TLS 1.2 and 1.3, ECDSA suites only, RSA certificatepage loads over TLS 1.3page loads over TLS 1.3

SSL_ERROR_NO_CYPHER_OVERLAP points at the cipher list or the key type. Versions have two codes. SSL_ERROR_PROTOCOL_VERSION_ALERT ("Peer reports incompatible or unsupported protocol version.") means the server answered the first message with an alert, as ours did. SSL_ERROR_UNSUPPORTED_VERSION ("Peer using unsupported version of security protocol.") means it answered with a version outside the range Firefox allows [3][10]. For both, Firefox adds "This website might not support the TLS 1.2 protocol, which is the minimum version supported by Firefox." [4]

When Firefox settings cause it

For these codes Firefox checks whether any preference whose name starts with security.tls.version., security.ssl3. or security.tls13. has been changed. If one has, it replaces Try Again with "It looks like your network security settings might be causing this. Do you want the default settings to be restored?" and a Restore default settings button, which clears those preferences and reloads the page [4]. Switching off in Firefox the one cipher suite our server allowed gave SSL_ERROR_NO_CYPHER_OVERLAP with that button, and raising the minimum protocol version to TLS 1.3 against a TLS 1.2 server gave SSL_ERROR_PROTOCOL_VERSION_ALERT with it [10].

If you are a visitor

Both browsers put the cause on the site. Chrome says the site "uses an unsupported protocol" and shows no reload button; Firefox's Secure Connection Failed page asks you to contact the website owners [2][4][10]. Two checks are still worth a minute:

  1. In Firefox, use Restore default settings if the page offers it. The button appears only when one of those security preferences has a changed value, and it resets them [4].

  2. Open the site in another browser. Every server-side cause we tried failed in Chrome and in Firefox alike, so a failure in both points at the server [10].

Do not lower the minimum TLS version on about:config to get past the error. With security.tls.version.min set to 1, our Firefox opened a TLS 1.0 server [10]. The setting applies to every site you visit, it goes below what Firefox calls its minimum supported version, TLS 1.2 [4], and the server stays as it was. If the site fails on other devices and networks too, only its owner can fix it.

Causes on the server

Only TLS 1.0 or TLS 1.1 is enabled

A server limited to TLS 1.0, or to TLS 1.1, gave ERR_SSL_VERSION_OR_CIPHER_MISMATCH in Chrome and SSL_ERROR_PROTOCOL_VERSION_ALERT in Firefox, and its log showed unsupported protocol [10]. Enable TLS 1.2 and TLS 1.3. In nginx, this line is also the default [8]:

ssl_protocols TLSv1.2 TLSv1.3;

In Apache [8]:

SSLProtocol -all +TLSv1.2 +TLSv1.3

A library that cannot offer the version needs an upgrade, not a configuration line: nginx documents that the TLSv1.3 parameter works only with OpenSSL 1.1.1 or higher [8]. Which versions to allow, and why, is on TLS versions.

The cipher list contains nothing a browser accepts

The versions match, but every suite the server allows is one the browsers do not offer. A TLS 1.2 server limited to suites with DHE key exchange failed in both browsers, with no shared cipher in its log [10]. This is SSL_ERROR_NO_CYPHER_OVERLAP in its exact sense. Servers limited to suites with plain RSA key exchange, or to suites with SHA-1 message authentication, still connected in both browsers [10], so a list that connects is no proof that it is current. Replace an old list with a current one rather than adding to it. Which suites to keep, and how to list every suite a server accepts, is explained on the cipher suites page of the TLS section.

The cipher list does not match the certificate's key

In TLS 1.2, an ECDHE suite also fixes the type of key the certificate must hold. ECDHE_ECDSA suites need a certificate with an ECDSA or EdDSA key, and ECDHE_RSA suites need an RSA key (RFC 8422, sections 2.1 and 2.2) [6]. A list with only one family leaves nothing usable when the certificate holds the other type. We tried both directions: an RSA certificate with ECDSA suites only, and an ECDSA certificate with RSA suites only. Each gave ERR_SSL_VERSION_OR_CIPHER_MISMATCH in Chrome, SSL_ERROR_NO_CYPHER_OVERLAP in Firefox and no shared cipher in the server log [10]. Check the key type with openssl x509 -in cert.pem -noout -text: the Public Key Algorithm line reads rsaEncryption for an RSA key and id-ecPublicKey for an ECDSA key [10]. Keep suites for that type in the list.

TLS 1.3 can hide a broken TLS 1.2 list

In OpenSSL the cipher list covers TLS 1.2 and below; TLS 1.3 suites are set separately [7]. Our RSA-certificate server with ECDSA suites only loaded in both browsers once TLS 1.3 was enabled, because they connected over TLS 1.3. openssl s_client -tls1_2 against the same server ended with sslv3 alert handshake failure and SSL alert number 40 [10]. Such a server works for both browsers we tested and fails for clients limited to TLS 1.2.

A typo can empty the TLS 1.2 list. Cipher strings are joined with :, combined with + and removed with ! [7]. openssl ciphers -v prints what a string expands to, and a string that matches nothing gives Error in cipher list with no cipher match [7][10]:

$ openssl ciphers -v 'ECDHE+AESGCM:!aNULL'

Windows servers

On a Windows server that uses Schannel, the Windows implementation of TLS, the protocol versions and cipher suites are Schannel settings. Microsoft documents the protocol settings as registry entries and recommends configuring cipher suites with Group Policy, MDM or PowerShell. An application or service restart might be required before a change applies, and these settings do not affect third-party TLS implementations installed on the system [9].

How to diagnose

Test from outside, against the hostname visitors use, one version at a time [7]:

$ 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

What our test servers returned [10]:

How to diagnose
OutputMeaning
Protocol : TLSv1.2, or New, TLSv1.3this version works
tlsv1 alert protocol version, SSL alert number 70the server does not allow the version you asked for
unsupported protocol with -tls1_2the server does not allow TLS 1.2; our TLS 1.0 and TLS 1.1 servers gave this
sslv3 alert handshake failure, SSL alert number 40the version is allowed, but no suite fits: check the list and the key type

When the result does not match the configuration you edited, find out what answers on port 443 for that hostname: another server, a proxy, or the same server reading a different file. More commands are on OpenSSL commands. Run both tests again after an upgrade of the server software, the TLS library or the operating system, because defaults change between versions: nginx, for one, enables TLS 1.3 by default only since version 1.23.4 [8].

FAQ

What does SSL_ERROR_NO_CYPHER_OVERLAP mean?

Firefox and the server share no cipher suite, so the encrypted connection cannot start. The server allows only suites Firefox does not accept, or its list does not fit the key type of its certificate. [3][10]

How do I fix SSL_ERROR_NO_CYPHER_OVERLAP in Firefox?

Click Restore default settings if Firefox shows it. If the site still fails, in other browsers too, its owner must enable TLS 1.2 and 1.3 with a cipher list that fits the certificate's key. [4][10]

What does ERR_SSL_VERSION_OR_CIPHER_MISMATCH mean?

Chrome and the server found no protocol version or cipher suite they both support. It is Chrome's name for what Firefox reports as SSL_ERROR_NO_CYPHER_OVERLAP for suites, or as SSL_ERROR_PROTOCOL_VERSION_ALERT or SSL_ERROR_UNSUPPORTED_VERSION for versions. [1][3][10]

Should I enable TLS 1.0 in my browser to open the site?

No. The setting applies to every site the browser opens, TLS 1.0 is below the minimum version Firefox supports, and the server stays unfixed. Ask the site's owner to enable TLS 1.2 or 1.3 instead. [4][10]

Why did this start without any change on my server?

Browsers drop old versions and cipher suites over time. Your configuration stayed the same while the browsers moved, so the overlap disappeared. [1][4]

How is it different from ERR_SSL_PROTOCOL_ERROR?

This code names the cause: the negotiation found nothing in common. ERR_SSL_PROTOCOL_ERROR is Chrome's default for TLS errors that have no more specific code. [1]

Sources

  1. Chromium, net/base/net_error_list.h and net/ssl/openssl_ssl_util.cc.

  2. Chromium, components/error_page_strings.grdp and components/error_page/common/localized_error.cc.

  3. Mozilla NSS, lib/ssl/SSLerrs.h and lib/ssl/ssl3con.c.

  4. Mozilla Firefox, toolkit/content/aboutNetError.mjs, toolkit/actors/NetErrorParent.sys.mjs, netError.ftl and certError.ftl.

  5. IETF, RFC 9846, The Transport Layer Security (TLS) Protocol Version 1.3, sections 4.2.1 and 6.

  6. IETF, RFC 8422, Elliptic Curve Cryptography (ECC) Cipher Suites for TLS Versions 1.2 and Earlier, sections 2.1 and 2.2.

  7. OpenSSL 3.0 manual: openssl-s_client, openssl-ciphers, SSL_CTX_set_cipher_list.

  8. nginx, ngx_http_ssl_module (ssl_protocols); Apache HTTP Server 2.4, mod_ssl (SSLProtocol).

  9. Microsoft Learn, Transport Layer Security (TLS) registry settings; Browsers and webview controls used by Office Add-ins.

  10. Our test setup: OpenSSL 3.0.13 servers with certificates from a test authority of our own, Chrome 156 and Firefox 147 in headless mode, OpenSSL 3.0.13 clients, on Linux Mint 22.1.