SSLCert Install but FF returns ssl_error_rx_record_too_long

I'm having trouble with apache after installing SSL cert #2 on my CentOS 5.5 server.

Here are my server specs:

CentOS 5.5

Virtualmin GPL (all modules up to date)



Here are my steps so far:

I got a third IP from linode.

Configured it on eth0:1 moved private IP to eth0:2

Purchased 5domain UCC cert from GoDaddy.

Configured it as I've done many times before. Godaddy confirms that it's installed correctly according to their testing tool.

Configured VirtualHost as follows:

NameVirtualHost XX.XX.XX.56:443
 <virtualhost xx.xx.xx.56:443="">SuexecUserGroup #501 #502
DocumentRoot /home/
ErrorLog /var/log/virtualmin/ifmasa.org_error_log
CustomLog /var/log/virtualmin/ifmasa.org_access_log "combined"
ScriptAlias /cgi-bin/ /home/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
 <directory "="" home="""" public_html"="">Options -Indexes +IncludesNOEXEC +FollowSymLinks
allow from all
AllowOverride All</directory> 
RewriteEngine on
RewriteCond %{HTTP_HOST}
RewriteRule ^(.*) [R]
RewriteCond %{HTTP_HOST}
RewriteRule ^(.*) [R]
SSLEngine on
SSLCertificateFile /home/
SSLCertificateKeyFile /home/
SSLCertificateChainFile /home/
SSLCACertificateFile /home/</virtualhost> 

Now if I go to I get the following:
> Secure Connection Failed

An error occurred during a connection to

SSL received a record that exceeded the maximum permissible length.

(Error code: sslerrorrxrecordtoo_long)

However if I go to apache shows me the index. This leads me to believe that something is wrong with apache not the cert.

Any ideas? or questions for more info?


8 Replies

Have you taken a look at: … l-centos-5">

Yes. I've installed SSL certs before and I'm about 95% sure that it's not the cert. I think it's something in apache, maybe in the httpd.conf file that I haven't thought of.

Any more ideas?

Anyone ever seen that error message before?

Why would apache be serving that index on the 443 port? Also, what directory is it showing because there are no files there?

Is it possible that there is another conf file with VirtualHosts in it that I'm missing? If so, where should I look? is loading all right for me. Fixed?

By the way, that Firefox error means that your server was trying to serve plain HTTP on port 443.

Kinda fixed. It's weird. I changed it from to and it started working but I have another virtual server above it that uses the IP address instead of * and it works fine. Maybe I don't have my new IP address configured correctly on the server.

Is there anywhere else I need to configure it other than the eth0:1 file?

From what I recall, that error message is what happens when you have an HTTP response to an HTTPS request.

So yeah, fixing up your virtualhosts would absolutely have an effect. Nothing to do with your ethernet configuration.

Both of you are right. The HTTP response was coming from the "default" server despite the VirtualHost xx.xx.xx.xx:443 directive.

Only by using the wildcard could I superceed the defaul server. I still am not satisfied that this is the best answer but for now it works and I need to move on to other things. I'll keep an eye here though if anyone has anymore suggestions as to the root cause. Maybe I should post my entire httpd.conf file for you guys to look through?

Also, THANKS everyone for helping me think through this. Helpful fellow Linoders is one of the many things that makes Linode so great!

Whoops, missed that hybinet already told you why that was happening.

In any case, yes, posting your full httpd.conf would be invaluable.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct