Skip to content

Instantly share code, notes, and snippets.

@thanhson1085
Last active November 16, 2019 03:45
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 thanhson1085/17a511ca19254f45a0463678f08afb16 to your computer and use it in GitHub Desktop.
Save thanhson1085/17a511ca19254f45a0463678f08afb16 to your computer and use it in GitHub Desktop.
wget https://dl.eff.org/certbot-auto
chmod +x certbot-auto
mv certbot-auto /usr/bin/certbot
certbot -d [domain]
crontab -e
0 5 * * 1 /usr/bin/certbot -q renew --post-hook "systemctl reload nginx"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment