What the Error Means
A browser that opens an https address sends a TLS handshake first. Every TLS message starts with a short header that includes a length. If the server replies with plain HTTP text, Firefox reads the first bytes of that text as a TLS header, gets a length far larger than TLS allows, and stops with SSL_
What a Visitor Can Try
- Check the address: a port number such as :80 or :8080 after the domain sends https to a plain HTTP port.
- Turn off a proxy or VPN: a misconfigured proxy can answer in plain text.
- Try another site: if every https site fails, security software or a proxy on the device may be intercepting traffic.
If the address is plain https://example.com and the error stays on other networks, the server needs fixing.
Test from the Command Line
Ask port 443 for plain HTTP. If it answers with an HTTP status line, it is not speaking TLS:
curl -v http://example.com:443/Then try a TLS handshake. On a correct server it prints the certificate chain; on a broken one the handshake fails at once with no certificate:
openssl s_client -connect example.com:443 -servername example.comMore on reading that output is in openssl s_
Nginx: listen 443 Without ssl
The most common cause. A server block listens on 443 but the ssl parameter is missing, and no other block sets it for that address and port, so Nginx serves plain HTTP there. The ssl parameter makes every connection accepted on the port use TLS:
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name example.com;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
}Check every server block that listens on 443, including the default one, with sudo nginx -T | grep -n "listen". Test the configuration before you reload:
sudo nginx -t
sudo systemctl reload nginxServer blocks are explained in Nginx server blocks.
Apache: a 443 Virtual Host Without SSLEngine
A VirtualHost on port 443 needs SSLEngine on with its certificate lines, and the SSL module must be loaded. On Ubuntu and Debian, enable it with sudo a2enmod ssl; on AlmaLinux and Rocky Linux, install the mod_ package. Then:
sudo apachectl configtest
sudo systemctl reload apache2On AlmaLinux and Rocky Linux the service is called httpd.
A Wrong Port or Backend
- A link with a port: https://example.com:8080 sends TLS to an application port that speaks plain HTTP.
- A load balancer passing TCP through: port 443 forwarded to a backend's port 80 returns plain HTTP.
- Another program on 443: check which process owns the port with
sudo ss -ltnp | grep ':443'.
After Editing Certbot's Lines
With its Nginx plugin, Certbot adds the TLS listener and certificate lines to the server block when it installs a certificate, marked with a "managed by Certbot" comment. If the block was rewritten later by hand and those lines were lost, run Certbot again or restore them; see Certbot with Nginx.
Confirm the Fix
curl -sI https://example.com/ | head -1A status line from curl over https, and a certificate in the s_
Updated:
Linux VPS with Full Root Access
MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.
More Guides
No Limits on Service or Support
You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

- 100% customer satisfaction goal
- Our own hardware
- 24/7 ticket and email support
- 4 countries with locations