ERR_SSL_PROTOCOL_ERROR: this site can’t provide a secure connection

9 min readUpdated

ERR_SSL_PROTOCOL_ERROR means the TLS handshake between Chrome and the site failed, so no secure connection was set up, and Chrome had no more specific code for the way it failed. Chromium defines it only as "An SSL protocol error occurred" [1], and its TLS code maps every failure that matches no other code to this one [2]. The fix therefore starts with finding what answered the browser. Opening the site from another network tells the visitor's side apart from the site's; the codes for other failures are collected under SSL errors.

Quick facts

Browsers
Chrome and other browsers built on Chromium, such as Microsoft Edge [1] [7]
Exact text
This site can’t provide a secure connection, then <host> sent an invalid response. and ERR_SSL_PROTOCOL_ERROR [1] [9]
Net error number
-107 in Chromium's list of network errors [1]
What failed
the TLS handshake; a certificate the browser rejects gets a different screen, Your connection is not private [9]
Firefox, same faults
SSL_ERROR_RX_RECORD_TOO_LONG, PR_END_OF_FILE_ERROR or an alert code such as SSL_ERROR_INTERNAL_ERROR_ALERT [5] [9]
Who fixes it
the visitor, if the site works from another network or device; the site owner, if it fails everywhere

What the error means

An HTTPS connection opens with a TLS handshake. The browser sends a ClientHello with the protocol versions and cipher suites it supports, the server answers with its choice, and only then does the server send its certificate (RFC 9846, section 2) [3]. ERR_SSL_PROTOCOL_ERROR means this exchange broke in a way Chromium has no separate code for. In our test, Chrome showed it for four different answers to the ClientHello [9]:

What the error means
What answered the ClientHelloChromeFirefox
a plain HTTP serverERR_SSL_PROTOCOL_ERRORSSL_ERROR_RX_RECORD_TOO_LONG
a service that sent a line of text, not TLSERR_SSL_PROTOCOL_ERRORPR_END_OF_FILE_ERROR
a fatal TLS alert, internal_error (80)ERR_SSL_PROTOCOL_ERRORSSL_ERROR_INTERNAL_ERROR_ALERT
a fatal TLS alert, decode_error (50)ERR_SSL_PROTOCOL_ERRORSSL_ERROR_DECODE_ERROR_ALERT

Chrome gave all four the same screen. Firefox put each on its Secure Connection Failed page with a code that names the fault, so opening the site in Firefox narrows the cause down [9].

Fixes for visitors

Start here if the site is someone else's: these checks show whether the cause is on your side, where you can fix it yourself.

  • Try another network. Use mobile data instead of Wi-Fi, or the reverse. If the site works there, something on the first network is in the way, such as a corporate proxy or a filtering device.

  • Turn off HTTPS scanning or the VPN for a moment. If the error goes away, update the product or exclude the site from scanning.

  • Open the site in another browser. If only one browser fails, the cause is in that browser or its extensions. In Firefox the code also says what failed, as in the table above.

A wrong clock is a listed cause of a different code. Chromium's error list gives it as one reason for NET::ERR_CERT_DATE_INVALID, a certificate date error, and lists no causes for ERR_SSL_PROTOCOL_ERROR [1]. Set the clock if you see that code instead.

If the site fails on a second network and a second device, the problem is at the site.

Fixes for site owners

These causes affect every visitor. Check them from outside, against the hostname visitors use.

  • Plain HTTP is answering on port 443. The server, or a proxy in front of it, listens on the HTTPS port without TLS, so the browser gets an HTTP reply instead of the server's half of the handshake. In our test this gave ERR_SSL_PROTOCOL_ERROR in Chrome and SSL_ERROR_RX_RECORD_TOO_LONG in Firefox [9]. In nginx, the listen 443 line needs the ssl parameter; in Apache, the virtual host on port 443 needs SSLEngine on [6]. See port 443.

  • Another service is on the port. A port forward or load balancer rule that sends 443 to the wrong backend has the same effect: in our test, a service that answered with a line of text gave the same Chrome code [9].

  • The server ends the handshake with an alert. RFC 9846 defines internal_error (80) for an error unrelated to the peer and decode_error (50) for a message that could not be decoded (section 6) [3]. Chrome shows both as ERR_SSL_PROTOCOL_ERROR, while openssl s_client and curl print the alert's name [9]. Reading alerts is covered on SSL handshake failed.

  • A layer in front of the server. If TLS ends at a load balancer, proxy or CDN, the checks above apply to that layer, not to the server behind it.

When Chrome shows a different code

Several faults that sound like ERR_SSL_PROTOCOL_ERROR have their own code in Chrome. This is what each produced in our test [9]:

When Chrome shows a different code
What the server didChromeFirefox
allowed only TLS 1.0ERR_SSL_VERSION_OR_CIPHER_MISMATCHSSL_ERROR_PROTOCOL_VERSION_ALERT
refused the ClientHello with handshake_failure (40)ERR_SSL_VERSION_OR_CIPHER_MISMATCHSSL_ERROR_NO_CYPHER_OVERLAP
rejected the hostname with unrecognized_name (112)ERR_SSL_UNRECOGNIZED_NAME_ALERTSSL_ERROR_UNRECOGNIZED_NAME_ALERT
closed the connection after the ClientHelloERR_CONNECTION_CLOSEDPR_END_OF_FILE_ERROR
reset the connectionERR_CONNECTION_RESETPR_CONNECT_RESET_ERROR
sent a certificate from an authority the browser does not trustERR_CERT_AUTHORITY_INVALIDnot tested

Chromium's source maps version and cipher failures to ERR_SSL_VERSION_OR_CIPHER_MISMATCH [2], and Chrome kept the heading This site can’t provide a secure connection for both. RFC 8996 deprecates TLS 1.0 and 1.1 [4]; accept TLS 1.2 and TLS 1.3, as set out on TLS versions. The hostname row is about SNI: the server had nothing for the name the browser sent.

For the hostname and connection rows the heading was This site can’t be reached, and for the connection rows Chrome suggested checking the proxy and the firewall [1] [9]; trying another network comes first there. A rejected certificate gets Your connection is not private, and an untrusted issuer shows as ERR_CERT_AUTHORITY_INVALID.

How to diagnose

Test from outside the server, against the hostname visitors use:

$ curl -v https://example.com/
$ openssl s_client -connect example.com:443 -servername example.com </dev/null

What the two commands printed in our test [9]:

How to diagnose
What the server didcurlopenssl s_client
answered with plain HTTP or a line of text(35), wrong version numberwrong version number
sent internal_error (80)(35), tlsv1 alert internal errortlsv1 alert internal error, SSL alert number 80
closed the connection after the ClientHello(35), SSL_ERROR_SYSCALLunexpected eof while reading
reset the connection(35), Connection reset by peerwrite:errno=104

Curl exited with code 35 in every row. That code is CURLE_SSL_CONNECT_ERROR, a problem somewhere in the handshake [8], so the text after it is what tells the faults apart. If both commands complete the TLS handshake and browsers still fail, compare the protocol versions the server accepts with what the browser offers.

How to prevent it

Check the handshake from outside after every change to the server, proxy, load balancer or CDN configuration, not only after certificate changes. A configuration file shows what was intended; a test against the public hostname shows what is served.

After the TLS library on the server, or on the layer in front of it, is upgraded, run the two commands again. The versions and ciphers it accepts can change with the upgrade.

FAQ

What does ERR_SSL_PROTOCOL_ERROR mean?

The TLS handshake between Chrome and the site failed, and Chrome had no more specific code for the failure. It is Chromium's default code for TLS errors, so the cause has to be found by testing. [2]

How do I fix ERR_SSL_PROTOCOL_ERROR?

As a visitor, try another network and another browser, and turn off HTTPS scanning in security software for a moment. If the site fails everywhere, the owner has to fix it: check that port 443 serves TLS rather than plain HTTP, and read the alert with openssl s_client.

Is ERR_SSL_PROTOCOL_ERROR my fault or the site's?

Either. Try the site on another network, such as mobile data. If it works there, the cause is your network or software; if it fails everywhere, the cause is the site.

What is the Firefox version of ERR_SSL_PROTOCOL_ERROR?

There is no single one, because Firefox names the fault. In our test, plain HTTP on the HTTPS port gave SSL_ERROR_RX_RECORD_TOO_LONG, a connection that ended during the handshake gave PR_END_OF_FILE_ERROR, and a fatal alert gave a code with the alert's name, such as SSL_ERROR_INTERNAL_ERROR_ALERT. [9]

Why did my site start showing this without any change?

Look at what sits in front of the server. A proxy, load balancer or CDN setting can change while the server's own files stay the same. Test the public hostname with curl -v and openssl s_client, and if a single visitor reports the error, ask them to try another network first.

How is it different from "Your connection is not private"?

That warning means the handshake reached the certificate and the browser rejected it; in our test, an untrusted issuer gave ERR_CERT_AUTHORITY_INVALID on that screen. ERR_SSL_PROTOCOL_ERROR means the handshake failed in a way that has no specific code. [9]

Sources

  1. Chromium, net/base/net_error_list.h (SSL_PROTOCOL_ERROR -107, CONNECTION_CLOSED -100, CONNECTION_RESET -101, CERT_DATE_INVALID -201) and components/error_page_strings.grdp (error page headings).

  2. Chromium, net/ssl/openssl_ssl_util.cc (how TLS errors map to net error codes).

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

  4. IETF, RFC 8996, Deprecating TLS 1.0 and TLS 1.1.

  5. Mozilla NSS, lib/ssl/SSLerrs.h; NSPR, pr/include/prerr.h.

  6. nginx, ngx_http_core_module, listen directive (ssl parameter); Apache HTTP Server 2.4, mod_ssl, SSLEngine directive.

  7. Microsoft Learn, Browsers and webview controls used by Office Add-ins (Microsoft Edge, Chromium-based).

  8. curl, libcurl error codes: CURLE_SSL_CONNECT_ERROR (35).

  9. Our test setup: OpenSSL 3.0 servers and clients, a plain HTTP server, a test TCP server, curl, Chrome and Firefox, with certificates from a test authority of our own.