Certbot: changing deploy-hook

Hello,

I used 'certbot certonly --manual --deploy-hook="..."' to receive my certificates and created a crontab that simply calls 'certbot renew'. Now I want to change the path to the deploy hook script.

I know I can add deploy-hook to certbot renew, but I want to keep the renew as simple as possible. When I rerun the manual statement with a new deploy hook path, will this also update the path for the renew?

Thank you!

Hi @ProXy

change your config file.

See

https://certbot.eff.org/docs/using.html#configuration-file

there you should find the path.

Yes, this will update the saved hook (and thus the path). JuergenAuer's route is much more direct (though not recommended by the certbot devs).

@JuergenAuer

The configuration file section you linked to in your last post is for the global cli.ini file. Was that the one you were meaning to reference?

The renewal configuration file paragraph is part of the "Managing certificates" item:

Personally, I think certbot should have some kind of "modify certificate settings" feature.

@JuergenAuer

Nevermind. It's both global and local. I really want to rewrite the guide. :weary:

Couldn't edit last post due to limits again.

Amen to that. :pray:

I somewhat hit into that here:

There:

Certificate specific configuration choices should be set in the .conf files that can be found in /etc/letsencrypt/renewal

Exact the same what @Osiris has shared:

These renewal configuration files are located at /etc/letsencrypt/renewal/CERTNAME . .

Yeah. I got confused reading the awful, mixed wording in the guide. I tried to edit my post, but got "limited". Hence my next post. Osiris cited a totally different section. The guide really needs help.

We'd love to see a PR!

I would love to write one. So many irons in the fire, but hopefully soon.

btw...
https://community.letsencrypt.org/t/how-i-wish-certbot-worked/138258