• Register
0 votes

Problem :

I had to remove a +CompatEnvVars from following :

SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars +StrictRequire

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

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

I am very new to SSL, any advice on what is going wrong?

7 5 2
3,870 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had also experienced this issue. For me it appeared when some of the erroneous code was trying to redirect to the HTTPS on port 80.

Example :


By removing a port 80 from a url, the redirect works.

HTTPS by default runs over the port 443.


In my case the Ubuntu system, in ports.conf I had as below:

NameVirtualHost *:80
Listen 80

And then, inside it , I had as below:

NameVirtualHost *:443
Listen 443

All I had to do was just remove a line NameVirtualHost Restarted my apache and problem solved.


In my case I just copied a ssl config from another machine and had a wrong IP in <VirtualHost wrong.ip.addr.here:443>. Changed the IP to what it should be, just restarted httpd and my site loaded over SSL as expected.

9 7 4
38,600 points

Related questions

1 vote
1 answer 207 views
Problem : I am very new to wget. Currently I want to wget to my current box but I am facing below error: wget http://example.com --2013-03-01 15:03:30--  http://example.com/ Resolving example.com... Connecting to example.com||:80... ... it and tried to find solution on it. But unable to do so as I am very new to wget. I need expert help to fix by above wget error.
asked Apr 16, 2020 stewart 4k points
0 votes
2 answers 322 views
Problem : I am trying to use the XAMPP and also started Apache but I cannot access my site over the HTTPS. I am facing the below error : [Mon Dec 16 08:05:33.208723 2019] [ssl:warn] [pid 3784:tid 256] AH01909: RSA certificate configured for www.example ... RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name What is wrong and how can I correct it?
asked Dec 17, 2019 alecxe 7.5k points
0 votes
1 answer 2 views
Problem: Hello. I'm getting: javax.net.ssl.SSLException: Received fatal alert: bad_record_mac I will check it out (i think ive already deal with this error in the past), just please give me few days, have some offline things to do Also, would you be so ... is working with both HttpBrowser and HttpRequest, on JDK 1.7.0_45? The workaround should be: socket.setEnabledProtocols(new String[]{"SSLv3"});
asked 21 hours ago Ali 4.3k points
0 votes
1 answer 407 views
Problem : I am trying to call an SSL protected web service running on JDK7 based client, but getting bellow error javax.net.ssl.sslexception received fatal alert unexpected_message
asked Nov 5, 2019 peterlaw 6.9k points
0 votes
2 answers 404 views
Problem : Has anyone faced this error before? I am new to SSL javax.net.ssl.sslexception: received fatal alert: protocol_version
asked Nov 2, 2019 peterlaw 6.9k points
0 votes
3 answers 250 views
Problem : I am trying to setup a SSL Socket connection. But i am getting below error javax.net.ssl.sslhandshakeexception received fatal alert bad_certificate
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
1 answer 178 views
Problem : I am having trouble with my website. It has been slowed down a little in last couple of days. I have carefully looked into my error log & found a lots of following logs: [Sat Nov 30 00:09:53 2019] [error] [client] Request ... core.c(3126): [client] redirected from r->uri = /images/2019/02/600x376_0.076827001313237200_pixnaz_ir_1.jpg How to solve this issue?
asked Nov 30, 2019 alecxe 7.5k points
0 votes
1 answer 25 views
There was a problem i am having following issue: confirming the ssl certificate: [ssl: tlsv1_alert_protocol_version] Can anyone suggest what is wrong?
asked Jul 22, 2020 James Martin 2.2k points
1 vote
1 answer 263 views
Problem : I am beginner to Python. Currently if I try to use the request module to have the urls text then I often face below Error: Traceback (most recent call last):  File "/usr/local/lib/python3.6/site-packages/requests-2.18.1-py3.5.egg/requests/adapters.py" ... to get the url's text to parse it. Please find below my line of code for your reference: mytext = requests.get(detail_path).mytext
asked May 2, 2020 stewart 4k points