Note
quick tutorial
- # Enable ssl
- a2enmod ssl
- # Edit /etc/apache2/ports.conf and add “Listen 443”
- # Generate certs: use your domain as Common Name or *.domain.tld for multiple domains
- openssl req -x509 -nodes -days 365 -newkey rsa:1024 -out /etc/apache2/server.crt -keyout /etc/apache2/server.key
- # In the virtualhost, use the following code:
- <VirtualHost 192.168.0.1:443>
- SSLEngine On
- SSLCertificateFile /etc/apache2/server.crt
- SSLCertificateKeyFile /etc/apache2/server.key
- </VirtualHost>
- # Reload apache2
- /etc/init.d/apache2 reload