tls (ssl) certificate
December 24, 2019
12:38 PM
self sign cert
sudo openssl req -x509 -newkey rsa:2018 -keyout mycert.key -out mycert.crt -days 365 -nodes
sudo cp mycert.crt /etc/ssl/certs/
sudo cp mycert.key /etc/ssl/private/
sudo nano [file]
sudo nano /etc/apache2/sites-available/
sudo nano [file]
edit to point to both cert and private key
SSLEngine on
sudo a2ensite [file]
sudo a2enmod ssl
systemctl restart apache2