ssl_error_rx_record_too_long connection error with SSL site in Firefox

Posted by Thomas on Server Fault See other posts from Server Fault or by Thomas
Published on 2011-03-29T10:05:13Z Indexed on 2012/06/24 3:18 UTC
Read the original article Hit count: 641

Filed under:
|

I am trying to set up SSL in Apache but when I go to the server in Firefox I get the following error message:

An error occurred during a connection to sludge.home.

SSL received a record that exceeded the maximum permissible length.

(Error code: ssl_error_rx_record_too_long)

My virtual host config file looks like this.

<IfDefine SSL>

    <VirtualHost *:443>
            ServerName sludge.home
            SSLEngine on
            SSLCertificateFile /usr/local/apache/cert/server.crt
            SSLCertificateKeyFile /usr/local/apache/cert/server.pem
            SSLProtocol -SSLv2
            SSL CipherSuite HIGH:!ADH:!EXP:!MD5:!NULL

            DocumentRoot "/usr/local/apache/htdocs"
            ServerAdmin [email protected]

            <Location />
                    AuthType Digest
                    AuthName "private area"
                    AuthDigestDomain /
                    AuthDigestProvider file
                    AuthUserFile /usr/local/apache/passwd/digest_pw
                    Require valid-user
            </Location>

            <Directory /usr/local/apache/htdocs/bugz>
                    AddHandler cgi-script .cgi
                    Options +Indexes +ExecCGI
                    DirectoryIndex index.cgi
                    AllowOverride Limit FileInfo Indexes
            </Directory>

            <Directory /usr/local/apache/htdocs/bugzilla>
                    AddHandler cgi-script .cgi
                    Options +Indexes +ExecCGI
                    DirectoryIndex index.cgi
                    AllowOverride Limit FileInfo Indexes
            </Directory>

            <Directory />
                    Options FollowSymLinks
                    AllowOverride None
                    Order deny,allow
                    Deny from all
            </Directory>

            <Directory "/usr/local/apache/htdocs">
                    Options Indexes FollowSymLinks
                    Allow Override None
                    Order allow,deny
                    Allow from all
            </Directory>

            <IfModule dir_module>
                    DirectoryIndex index.html
            </IfModule>

            <FilesMatch "^\.ht">
                    Order allow,deny
                    Deny from all
                    Satisfy All
            </FilesMatch>

    </VirtualHost>

</IfDefine>

A telnet to this server reveals that server is sending plain HTML back. Further more it seems as though mod_ssl is not loaded/working even though when I httpd -l it shows up as being statically compiled in.

I have exhausted most avenues I can think of.

© Server Fault or respective owner

Related posts about apache2

Related posts about ssl