Create self signed certificate on localhost Ubuntu
./ssl.sh my-domain.local
/etc/apache2/sites-available/my-domain.local.conf
add:
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName my-domain.local
ServerAlias my-domain.local
DocumentRoot /var/www/my-domain.local
<Directory />
AllowOverride All
</Directory>
<Directory /var/www/my-domain.local>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Require all granted
</Directory>
ErrorLog /var/log/apache2/my-domain.local-error.log
LogLevel error
CustomLog /var/log/apache2/my-domain.local-access.log combined
SSLEngine on
SSLCertificateFile /home/ak/http_certs/my-domain.local/my-domain.local.crt
SSLCertificateKeyFile /home/ak/http_certs/my-domain.local/my-domain.local.key
</VirtualHost>
sudo service apache2 restart
apachectl configtest