Skip to content

Instantly share code, notes, and snippets.

Embed
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/my-domain.com
cert = /etc/letsencrypt/live/my-domain.com/cert.pem
privkey = /etc/letsencrypt/live/my-domain.com/privkey.pem
chain = /etc/letsencrypt/live/my-domain.com/chain.pem
fullchain = /etc/letsencrypt/live/my-domain.com/fullchain.pem
# Options used in the renewal process
[renewalparams]
authenticator = standalone
installer = None
account = 207645b6bf251bcfc91b4fddd042b70f
pre_hook = service nginx stop
post_hook = service nginx start
@magician11

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
You can’t perform that action at this time.