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
- In nginx, use "listen 443 ssl;" with ssl_certificate and ssl_certificate_key set.
- In Apache, enable mod_ssl and set "SSLEngine on" in the port 443 virtual host.
- Check the port with "openssl s_client -connect host:443"; a plain-text reply confirms TLS is off.
Got a different message? Paste it into the error explainer.
Related errors
- NET::ERR_CERT_DATE_INVALID · The certificate has expired or is not yet valid
- NET::ERR_CERT_AUTHORITY_INVALID · The certificate isn't issued by a trusted authority
- SEC_ERROR_UNKNOWN_ISSUER · Firefox doesn't recognise the certificate's issuer
- NET::ERR_CERT_COMMON_NAME_INVALID · The certificate doesn't cover this name
- ERR_SSL_PROTOCOL_ERROR · The secure connection failed during the handshake
- ERR_SSL_VERSION_OR_CIPHER_MISMATCH · No TLS version or cipher in common
- You cannot visit this site right now because the website uses HSTS · HSTS blocks the bypass of a certificate error
- NET::ERR_CERT_REVOKED · The certificate has been revoked by its issuer
- NET::ERR_CERT_WEAK_SIGNATURE_ALGORITHM · The certificate is signed with an insecure algorithm
- NET::ERR_CERT_INVALID · The certificate is malformed or breaks platform rules
- NET::ERR_CERTIFICATE_TRANSPARENCY_REQUIRED · The certificate is not logged in Certificate Transparency
- ERR_SSL_UNRECOGNIZED_NAME_ALERT · The server has no site configured for this hostname