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

Add support for certbot hooks #56

Closed
bakerkj opened this issue Oct 14, 2016 · 5 comments · Fixed by #174
Closed

Add support for certbot hooks #56

bakerkj opened this issue Oct 14, 2016 · 5 comments · Fixed by #174

Comments

@bakerkj
Copy link

bakerkj commented Oct 14, 2016

--pre-hook PRE_HOOK Command to be run in a shell before obtaining any
certificates. Intended primarily for renewal, where it
can be used to temporarily shut down a webserver that
might conflict with the standalone plugin. This will
only be called if a certificate is actually to be
obtained/renewed. (default: None)

--post-hook POST_HOOK
Command to be run in a shell after attempting to
obtain/renew certificates. Can be used to deploy
renewed certificates, or to restart any servers that
were stopped by --pre-hook. This is only run if an
attempt was made to obtain/renew a certificate.
(default: None)

--renew-hook RENEW_HOOK
Command to be run in a shell once for each
successfully renewed certificate.For this command, the
shell variable $RENEWED_LINEAGE will point to
theconfig live subdirectory containing the new certs
and keys; the shell variable $RENEWED_DOMAINS will
contain a space-delimited list of renewed cert domains
(default: None)

@vide
Copy link

vide commented Dec 30, 2016

In particular --renew-hook would be a far better implementation for what cron_success_command is trying to achieve, because the cron is basically always returning true at every execution and it's completely useless.

@caiohasouza
Copy link

+1

@TNAJanssen
Copy link

--renew-hook is already gone and replaced by --deploy-hook

https://blog.wizardsoftheweb.pro/certbot-hook-api/

@Rathios
Copy link
Contributor

Rathios commented Feb 7, 2019

I'm interested in working on this as I'd rather use certbot renew w/ hooks than the current solution. I'll see what I can come up with ...

@bastelfreak
Copy link
Member

Hey @Rathios, feel free to provide a PR with anything you can come up with. We're happy to assist you. Let us know if you need any help.

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

Successfully merging a pull request may close this issue.

6 participants