Greetings there,
I just installed apache2 (and the whole kit and kaboodle) for my server (I have previous ran XAMPP, so I am reading documentation on how to do this effectively).
So far, I have been unsuccessful at getting SSL to work for my host, so I'll go down the steps I have taken and hopefully you will be able to see what I have done wrong and help me out.
1) Installed Apache2, Php5, MySQL, etc. OpenSSL came with this, I do believe. But either way, I have it.
2) Enabled mod_ssl by running:
3) Copied /etc/apache2/sites-available/default to /etc/apache2/sites-available/https
4) Edited the 'https' site to read:
Code:
SSLEngine On
SSLCertificateFile /etc/ssl/certs/https.cert
SSLCertificateKeyFile /etc/ssl/private/https.key
After DocumentRoot
5) I also changed "NameVirtualHost" and "VirtualHost" to read:
Code:
NameVirtualHost *:443
<VirtualHost *:443>
6) Created my ssl key, by running:
Code:
openssl genrsa -out https.key 1024
7) Created my CSR by running:
Code:
openssl req -new -key https.key -out https.csr
8) Created my certificate by running:
Code:
openssl x509 -req -days 365 -in https.csr -signkey https.key -out https.cert
9) Copied the key and the certificate to the appropriate directories:
Code:
sudo cp https.cert /etc/ssl/certs/https.cert
sudo cp https.key /etc/ssl/private/https.key
10) Restarted Apache2:
Code:
sudo /etc/init.d/apache2 force-reload
And this is where the problem begins.
I attempt to access the HTTPS site, and I get this Firefox Error:
Code:
Secure Connection Failed
An error occurred during a connection to mycroftserver.homelinux.org.
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)
Here is my error from /var/log/apache2/error.log:
Code:
[Fri Nov 07 13:08:38 2008] [notice] Apache/2.2.3 (Ubuntu) PHP/5.2.1 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Fri Nov 07 13:08:43 2008] [error] [client ipaddress] Invalid method in request \x16\x03\x01
[Fri Nov 07 17:38:32 2008] [error] [client ipaddress] Invalid method in request \x16\x03\x01
Any help?
Bookmarks