Posted by: Wildan Maulana | September 17, 2009

[Solved] ssl_error_rx_record_too_long

Update :

After disable all the virtual host, and enable only the secure one (using the configuration below), everything work as expected.

To make sure, the server talk in a secure mode (using ssl), try access the server using http://

http://openthinklabs.wm:443

If you receive a bad request information from the browser, like the one below :

bad_request

Your ssl configuration is correct.

If you see plain text, you willl get ssl_error_rx_record_too_long error when accessing the page using https.


After following tutorial at [1] i get ssl_error_rx_record_too_long error.

ssl_error_rx_record_too_long.

Didn’t find any solution yet …

Here is my virtual host setting :

NameVirtualHost *:443
<VirtualHost *:443>
	ServerAdmin wildan.m@gmail.com
        ServerName openthinklabs.wm

	DocumentRoot /home/wildan/jobstuff/OpenThinkLabs/webapps/openthinklabs
	
	
	
	<Directory "/home/wildan/jobstuff/OpenThinkLabs/webapps/openthinklabs">
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from all
		# This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
                #RedirectMatch ^/$ /apache2-default/
	</Directory>
	

	ErrorLog /var/log/apache2/openthinklabs_error.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel debug

	CustomLog /var/log/apache2/openthinklabs.log combined
ServerSignature On

SSLEngine On
SSLCertificateFile /etc/apache2/ssl.cert/server.crt
SSLCertificateKeyFile /etc/apache2/ssl.key/server.key

#SSLCertificateChainFile /etc/apache2/ssl.cert/my-ca.crt
#SSLCACertificateFile /etc/apache2/ssl.cert/my-ca.crt
	
	 
JkMount /alfresco ajp13
JkMount /alfresco/* ajp13

JkMount /cas ajp13
JkMount /cas/* ajp13

<Location /alfresco>
AuthType CAS
AuthName "CAS"
require valid-user
CASScope /alfresco
</Location>

<Location /share>
AuthType CAS
AuthName "CAS"
require valid-user
CASScope /share
</Location>

<Location /examples>
AuthType CAS
AuthName "CAS"
require valid-user
CASScope /examples
</Location>



</VirtualHost>

References :

[1]. http://www.tc.umn.edu/~brams006/selfsign.html


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: