Created
March 19, 2018 17:57
-
-
Save MaxySpark/29a2a10371b81301914c364794ad1a77 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
| sudo add-apt-repository ppa:certbot/certbot | |
| sudo apt-get update | |
| sudo apt-get install python-certbot-nginx |
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
| # sudo nano /etc/nginx/sites-available/default | |
| # server_name example.com www.example.com; | |
| sudo nginx -t | |
| sudo systemctl reload nginx | |
| sudo ufw enable | |
| sudo ufw allow 'Nginx Full' | |
| sudo ufw allow 'OpenSSH' | |
| sudo ufw delete allow 'Nginx HTTP' | |
| sudo ufw status |
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
| # sudo certbot --nginx -d example.com -d www.example.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment