Apache web server/SSL

About
This page is about getting the Apache web server to work with SSL.

How To
To get SSL working with virtual hosting (or at all, really), I had to do the following: NameVirtualHost *:443 SSLProtocol -all +TLSv1 +SSLv3 SSLCertificateFile /etc/apache2/certs/server.crt SSLCertificateKeyFile /etc/apache2/certs/server.key    # SSL name based virtual hosts are not yet supported, therefore no    # NameVirtualHost statement here Listen 443 https   SSLEngine on       (copy of essential stuff from ) 
 * in apache2.conf:
 * 1) added above the "Include /etc/apache2/sites-enabled/" line:
 * 1) added below it:
 * in ports.conf:
 * Pick which domain to serve for https requests, and add to that site's config file:
 * (and finally...) Remember to forward port 443 on the router.

The exact filenames will be different depending on your Apache setup; these were in Ubuntu. "Listen 443" apparently also works (without the "https").

Links

 * Apache 2.2: official documentation
 * mod_ssl: the Apache module which provides SSL/TLS support
 * How To Generate SSL Key, CSR and Self Signed Certificate For Apache