-
Create a self-signed certificate to enable SSL
Under /etc/apache2/ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ./ssl.key/<hostname>.key -out ./ssl.crt/<hostname>.crt
-
under /etc/apache2/vhost.d/
cp vhost-ssl.template vhost-ssl
-
Edit vhost-ssl.conf, add below 2 lines in the
configuration: SSLCertificateFile /etc/apache2/ssl.crt/
.crt SSLCertificateKeyFile /etc/apache2/ssl.key/ .crt