Version 1, last updated by maarten.koopmans at May 05, 2011 21:56 UTC

It’s time to enable ssl on Apache! First we’ll use some self-signed certificates (unless you have “real” ones, then skip this):

openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
Next, do:

a2enmod ssl
cd /etc/apache2/sites-enabled/
rm 000-default
ln -s ../sites-available/default-ssl
/etc/init.d/apache2 restart

…and if all is well you now have a working apache with SSL. We’ll change the config for default-ssl quite heavily in Apache final config, but for now, when you browse to your machine, you should see “It works” displayed in your web browser.