Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to add pre and post hooks for Certbot automatic renewals running Nginx
# renew_before_expiry = 30 days
version = 0.19.0
archive_dir = /etc/letsencrypt/archive/
cert = /etc/letsencrypt/live/
privkey = /etc/letsencrypt/live/
chain = /etc/letsencrypt/live/
fullchain = /etc/letsencrypt/live/
# Options used in the renewal process
authenticator = standalone
installer = None
account = 207645b6bf251bcfc91b4fddd042b70f
pre_hook = service nginx stop
post_hook = service nginx start

This comment has been minimized.

Copy link
Owner Author

@magician11 magician11 commented Jan 19, 2018

this file will live in /etc/letsencrypt/renewal

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