To review the Apache config: (rename 000-default.conf
to whatever yours is set to)
cat /etc/apache2/sites-available/000-default.conf
To create the necessary certificates (you can choose any name you want for the file):
sudo openssl req -x509 -nodes -days 9999 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt
Make sure to type the URL or IP of your site (eg localhost
or 127.0.0.1
for the prompt Common Name (e.g. server FQDN or YOUR name) []:.
If this is just for testing, don't password protect anything without a good reason...