Skip to content
MtrXTools

SSL_ERROR_RX_RECORD_TOO_LONG

The server isn't speaking TLS on this port

Seen in Firefox · Last updated

Firefox expected a TLS handshake but received something else, usually a plain HTTP response on the HTTPS port.

Common causes

  • The web server listens on 443 without TLS enabled (e.g. nginx "listen 443;" without "ssl").
  • No TLS virtual host is configured, so the default plain HTTP site answers on 443.
  • The URL uses https:// with a port that only serves HTTP, or a proxy is answering in plain text.

How to fix it

  1. In nginx, use "listen 443 ssl;" with ssl_certificate and ssl_certificate_key set.
  2. In Apache, enable mod_ssl and set "SSLEngine on" in the port 443 virtual host.
  3. Check the port with "openssl s_client -connect host:443"; a plain-text reply confirms TLS is off.
Test the TLS handshake

Got a different message? Paste it into the error explainer.

Related errors

All 40 Browser & TLS errors