Skip to content

Instantly share code, notes, and snippets.

@alfmatos
Last active October 19, 2017 13:58
Show Gist options
  • Save alfmatos/720816fc9806ef170733e6582170f391 to your computer and use it in GitHub Desktop.
Save alfmatos/720816fc9806ef170733e6582170f391 to your computer and use it in GitHub Desktop.
Certbot renew for ngnix
#!/usr/bin/env sh
# certbot for letsencrypt to renew certificates
# this can be used in a crontab entry
# 0 4 * * * certbot renew --pre-hook "service nginx stop" --post-hook "service nginx start" --dry-run
certbot renew --pre-hook "service nginx stop" --post-hook "service nginx start"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment