Apache2 SSL configuration on Ubuntu/Debian

Posted by Sim at Jul 24, 2008 06:02 PM |
Filed under: ,

This took way too long for me to figure out so I am creating my own HowTo.

All the HowTos for doing this refer to some script that doesn't exist.  Here is what I did:

apt-get install apache2 ssl-cert
mkdir /etc/apache2/ssl
/usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf  /etc/apache2/ssl/apache.pem
# Answer questions...
cd /etc/apach2/sites-available
cp default ssl
emacs ssl
#
# Add at least:
# NameVirtualHost *:443
# <VirtualHost *:443>
# ...
# SSLEngine On
# SSLCertificateFile /etc/apache2/ssl/apache.pem
#
a2ensite ssl
/etc/init.d/apache2 restart
Document Actions