Skip to content

Instantly share code, notes, and snippets.

@raikel
Created July 29, 2020 17:50
Show Gist options
  • Select an option

  • Save raikel/5f156818c2f946b9099c8252d4236492 to your computer and use it in GitHub Desktop.

Select an option

Save raikel/5f156818c2f946b9099c8252d4236492 to your computer and use it in GitHub Desktop.

Cerbot with Nginx

More info here. Ensure you have server blocks for example.com and www.example.com, and that the port 443 is allowed through the firewall.

sudo add-apt-repository ppa:certbot/certbot
sudo apt install python-certbot-nginx
sudo certbot --nginx -d example.com -d www.example.com
sudo certbot renew --dry-run # to check that the auto-renewal works well 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment