Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Provide a hook after renew #9840

Closed
fishy opened this issue Nov 17, 2023 · 1 comment
Closed

Feature request: Provide a hook after renew #9840

fishy opened this issue Nov 17, 2023 · 1 comment

Comments

@fishy
Copy link

fishy commented Nov 17, 2023

My understanding is that certbot renew as executed from the cron job would only restart/reload http server (nignx/apache) only if the cert it's renewing is using the nginx/apache module.

Which means if I use manual dns hook to get the certs, it won't auto restart my http server after renewing.

Further more, not all certs are used by the traditional http servers. For example I also has a cert used by ocserv.

So:

  1. It would be great if we can add an option to auto restart/reload the http server after success renewal
  2. Or better yet, add an option to run a custom hook after success renewal (so I can handle the restart of http server and/or other servers using the cert(s))

My operating system is (include version):

Debian testing/trixie

I installed Certbot with (snap, OS package manager, pip, certbot-auto, etc):

apt

@osirisinferi
Copy link
Collaborator

Please see the "Renewing certificates" paragraph of the Certbot User Guide, especially the part about the --deploy-hook, which is what you're requesting here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants