lego icon indicating copy to clipboard operation
lego copied to clipboard

Add hook for script before requesting a new certificate

Open vsund opened this issue 5 years ago • 3 comments

I'm using acme-dns as provider for DNS challenges and I'd like to start it when it's needed and stop it when it's not needed anymore (and additionally copying over certificates and restarting services).

For this various hooks would be great :) A few days ago there was a PR merged which adds a post hook. Are there any plans to add a pre hook too? (which e.g. would be executed when a certificate will get renewed)

vsund avatar Apr 04 '19 18:04 vsund

I join in ! And send some args to scripts via --hook , for eg domain name, date renew certificate and other.

metanovii avatar Jun 26 '19 12:06 metanovii

I recently migrated from certbot and found this feature(--pre-hook) missing in lego. I can attempt a pull request for this.

hari-govind avatar Nov 30 '21 17:11 hari-govind

Will it be added someday? Would be nice to get something similar to this: https://eff-certbot.readthedocs.io/en/stable/using.html#pre-and-post-validation-hooks

tengzl33t avatar Oct 05 '23 06:10 tengzl33t