* Copy certificates to /etc/apache2/ssl/

* Start setting up Apache for SSL:

sudo a2enmod ssl
cd /etc/apache2/sites-available/
sudo cp default ssl
sudo ln -s /etc/apache2/sites-available/ssl /etc/apache2/sites-enabled/ssl 

* Modify "/etc/apache2/sites-enabled/ssl" as follows:

NameVirtualHost *:443
<VirtualHost *:443>

* Modify "/etc/apache2/ports.conf" as follows

add Listen 443 and remove Listen 80

* In "/etc/apache2/sites-available/ssl" under these lines:

"NameVirtualHost *:443
<VirtualHost *:443>"

insert these lines:

SSLEngine On
SSLCertificateFile /etc/apache2/ssl/CertName.pem     

* In "/etc/apache2/httpd.conf" add the following lines:

SSLVerifyClient require
SSLVerifyDepth 1
SSLCACertificateFile /etc/apache2/ssl/CACert.pem 

* Then restart apache.

MoinMoin: MoinMoinBugs/SSLPageSizeLimit/InstallingSSLAuthentication (last edited 2007-10-29 19:19:08 by localhost)