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!

2 Likes

Hi @ProXy

change your config file.

See

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

there you should find the path.

3 Likes

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).

2 Likes

@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?

2 Likes

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.

3 Likes

@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.

2 Likes

Amen to that. :pray:

I somewhat hit into that here:

2 Likes

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 . .

2 Likes

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.

2 Likes

We'd love to see a PR!

2 Likes

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

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.