TLS & certificate errors

    SSL_ERROR_RX_RECORD_TOO_LONG: Firefox: the server answered without encryption on the secure port

    Also searched as: Secure Connection Failed SSL_ERROR_RX_RECORD_TOO_LONG · ssl error rx record too long

    Is SSL_ERROR_RX_RECORD_TOO_LONG happening on your domain?

    An SSL check tries the same handshake Firefox does. If it cannot complete one on port 443, the server is not speaking TLS there and the configuration needs fixing.

    Free, no signup. Runs from outside your network, which is the only way to tell a server fault from a local one.

    Short answer

    Firefox asked for a secure connection and the server replied with something that was not encrypted. It almost always means the web server is serving plain HTTP on port 443, because SSL is not switched on for that site or port. It is a server configuration fault, and visitors cannot fix it.

    What SSL_ERROR_RX_RECORD_TOO_LONG means

    On port 443 the browser expects the first bytes to be a TLS record. If the server sends ordinary HTTP instead, Firefox reads those bytes as a TLS record of impossible length and reports SSL_ERROR_RX_RECORD_TOO_LONG. Chrome shows ERR_SSL_PROTOCOL_ERROR for the same fault.

    Causes and fixes, most likely first

    most common

    The site is listening on port 443 without SSL enabled.

    In nginx, the server block needs listen 443 ssl together with ssl_certificate and ssl_certificate_key. In Apache, the virtual host for port 443 needs SSLEngine on and the certificate directives. Reload the server afterwards.

    common

    The request reaches a different site or a default virtual host that has no certificate.

    Check that the hostname matches a virtual host that has SSL configured, and that the SSL module is loaded. A missing or misspelt server name sends the request to the default host.

    occasional

    A proxy or load balancer forwards to the wrong port or protocol.

    Confirm where TLS ends. If the load balancer handles TLS, it should send plain HTTP to the origin's HTTP port, and clients must not reach that port directly on 443.

    How to stop it happening again

    • •Run an SSL check after every web server change and every new site you add. This fault is nearly always introduced by a copied configuration block that left out the ssl setting.

    Frequently asked questions

    Can I fix SSL_ERROR_RX_RECORD_TOO_LONG as a visitor?

    No. If the site also fails in other browsers and on other networks, only the site owner can fix it. Using http:// instead of https:// may load the page, but the connection will not be encrypted.

    Related errors

    Monitor this continuously with LemWatch

    A one-off ssl_error_rx_record_too_long monitoring is a snapshot, not ongoing protection. Keep uptime, performance, SEO and security signals together with scheduled monitoring and configured alerts. Start free for 10 sites, no card needed.

    Explore ongoing SEO checks · Compare free monitoring options

    Last verified: by the Lemwatch research team.