Skip to content

Instantly share code, notes, and snippets.

@MaxySpark
Created March 19, 2018 17:57
Show Gist options
  • Select an option

  • Save MaxySpark/29a2a10371b81301914c364794ad1a77 to your computer and use it in GitHub Desktop.

Select an option

Save MaxySpark/29a2a10371b81301914c364794ad1a77 to your computer and use it in GitHub Desktop.
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-nginx
# 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
# 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