Last active
September 27, 2018 07:01
-
-
Save gogl92/38546a79158d39700dcea471e2053679 to your computer and use it in GitHub Desktop.
Automate Lets Encrypt
This file contains 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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo ./ssl.sh domain.com mail@gmail.com