just a logo :)



apache https
Entry Nr. 3194, by user 1
cd /etc/apache2/
mkdir ssl
cd ssl
openssl req -new -newkey rsa:2048 -sha1 -days 365 -nodes -x509 -keyout server.key -out server.crt
# ^ hit enter on all the fucking questions
vim /etc/apache2/sites-available/your_host
# duplicate the whole virtual host thingy and change <VirtualHost *:80> to <VirtualHost *:443>

# Put this at the end of the new virtual host section:
# ====================================================

SSLEngine On
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
<Location />
SSLRequireSSL On
SSLVerifyClient optional
SSLVerifyDepth 1
SSLOptions +StdEnvVars +StrictRequire

a2enmod ssl
service apache2 restart