---
title: "SSL_ERROR_RX_RECORD_TOO_LONG — test your site, then fix it"
description: "Run a free live check to see whether SSL_ERROR_RX_RECORD_TOO_LONG is happening on your own domain right now, then work through the causes ranked most likely…"
canonical: "https://lemwatch.com/errors/ssl-error-rx-record-too-long"
source: "https://lemwatch.com"
---

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

> 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…

## 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

- 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.
- 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.
- 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.

## Check your own 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.

## 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.



## Lemwatch at a glance

- What it is: website monitoring that checks uptime, page changes, SEO, security, SSL and speed in one tool.
- Free plan: 10 sites, no time limit, all check types.
- Pro: $19/mo, 50 sites, public API and webhooks.
- Agency: $59/mo, 150 sites, white-label status pages.
- Source: https://lemwatch.com/pricing (facts verified from the product's own plan limits).



## Related

- [All website error codes](https://lemwatch.com/errors)
- [ERR_SSL_PROTOCOL_ERROR](https://lemwatch.com/errors/err-ssl-protocol-error)
- [SSL handshake failed](https://lemwatch.com/errors/ssl-handshake-failed)
- [PR_END_OF_FILE_ERROR](https://lemwatch.com/errors/pr-end-of-file-error)
- [HTTP 400](https://lemwatch.com/http-status-codes/400)
- [Free SSL certificate check](https://lemwatch.com/tools/ssl-checker)
- [Is it down? Check any website](https://lemwatch.com/is-down)
- [SSL_ERROR_NO_CYPHER_OVERLAP: Firefox and the server share no encryption method](https://lemwatch.com/errors/ssl-error-no-cypher-overlap)
