Thursday, August 21, 2008

Error code: ssl_error_rx_record_too_long

had trouble setting up ssl on ubuntu 8.04. keep getting Error code: ssl_error_rx_record_too_long in firefox

this is how I fixed it:

create ssl certificate for apache on ubuntu 8.04 :
sudo mkdir /etc/apache2/ssl
sudo /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem

cd /etc/apache2/sites-available
cp default ssl

edit ssl, add
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem

enable site,
a2ensite ssl

2 comments:

kylemacrodot said...

you also need to change in ssl ...

VirtualHost *:80
to...
VirtualHost *:443

then restart/reload apache

Marek Dajnowski said...

I got it when I have created second secure virtualhost (project) on one server.

Quick resolution was to disable first site.

(I was lucky, that was my development server, not production one)