Skip to content

Instantly share code, notes, and snippets.

@gogl92
Last active September 27, 2018 07:01
Show Gist options
  • Save gogl92/38546a79158d39700dcea471e2053679 to your computer and use it in GitHub Desktop.
Save gogl92/38546a79158d39700dcea471e2053679 to your computer and use it in GitHub Desktop.
Automate Lets Encrypt
#!/bin/bash
sudo add-apt-repository ppa:certbot/certbot -y
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y python-certbot-nginx
sudo certbot --nginx -d $1 --email $2 --non-interactive --agree-tos --redirect
@gogl92
Copy link
Author

gogl92 commented Sep 27, 2018

sudo ./ssl.sh domain.com mail@gmail.com

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