Skip to content

Instantly share code, notes, and snippets.

@mattpatterson94
Created February 4, 2018 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattpatterson94/135d7437cb19cf2af383cd5823de3307 to your computer and use it in GitHub Desktop.
Save mattpatterson94/135d7437cb19cf2af383cd5823de3307 to your computer and use it in GitHub Desktop.
Set up Certbot

SET UP CERTBOT

#dev/server #dev/scripts

This is the setup guide for Certbot on Ubuntu 16.04 NGINX

https://certbot.eff.org/#ubuntuxenial-nginx

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-nginx 
sudo certbot --nginx --renew-hook "service nginx reload"
sudo certbot certonly --webroot -w /var/www/html -d bonafidedesignco.com --renew-hook "service nginx reload"

See CERTBOT RENEW CERTIFICATE CRON for the cron scripts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment