How To Create a SSL Certificate on Apache for Ubuntu 16.04.
step :
create ssl certificate :
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /home/moko/localhost.key -out /home/moko/localhost.crt
next step, create virtualhost:
SSLEngine on
SSLCertificateFile /home/moko/localhost.key
SSLCertificateKeyFile /home/moko/localhost.crt
reload apache
service apache2 reload
17 июн 2017