Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSL received a record that exceeded the maximum permissible length. (Error code: ssl_error_rx_record_too_long)

Tags:

ssl

apache

I followed the official docs on https setup located here: https://help.ubuntu.com/6.06/ubuntu/serverguide/C/httpd.html#https-configuration

I had to remove the +CompatEnvVars from

SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars +StrictRequire 

because it said it was an invalid command or something. So having removed that and following the instructions to the nail it get the error:

SSL received a record that exceeded the maximum permissible length.  (Error code: ssl_error_rx_record_too_long) 

I'm new to SSL, any advice on what's going wrong?

like image 402
Webnet Avatar asked Mar 29 '10 14:03

Webnet


2 Answers

I've just experienced this issue. For me it appeared when some erroneous code was trying to redirect to HTTPS on port 80.

e.g.

https://example.com:80/some/page

by removing the port 80 from the url, the redirect works.

HTTPS by default runs over port 443.

like image 131
Greg B Avatar answered Sep 28 '22 07:09

Greg B


I used

a2ensite default-ssl 

and it worked like a charm.

If you want to force e.g. phpmyadmin to use SSL/https you will run into this problem if this link is missing.

like image 22
Anolim Avatar answered Sep 28 '22 08:09

Anolim