Created
July 28, 2016 09:07
-
-
Save j-n-c/dece32e2f247cd81126066811545091c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Apache2 create self-signed certificate and configure SSL: | |
| >> sudo a2enmod ssl | |
| >> sudo service apache2 restart | |
| >> sudo mkdir /etc/apache2/ssl | |
| >> sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt | |
| >> sudo nano /etc/apache2/sites-available/default-ssl.conf: | |
| -- SSLCertificateFile /etc/apache2/ssl/apache.crt | |
| -- SSLCertificateKeyFile /etc/apache2/ssl/apache.key | |
| >> sudo a2ensite default-ssl.conf | |
| >> sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment