Page 1 of 1

Lets Encrypt final execution hook

Posted: Mon 31. Jan 2022, 11:10
by latifolia
Hello,

Can I have a recomendation on how to execute a script after Lets Encrypt in KeyHelp finish creating/updating Certificate?

I need to execute a local script which will update TLSA record in Cloudflare whenever the certificate is created/updated in KeyHelp.

PS :
The local script for CLoudflare is ready, just need info how to attach it on last action by Lets Encrypt in KeyHelp.

Thank you

Re: Lets Encrypt final execution hook

Posted: Mon 31. Jan 2022, 11:44
by Jolinar
latifolia wrote: Mon 31. Jan 2022, 11:10 The local script for CLoudflare is ready, just need info how to attach it on last action by Lets Encrypt in KeyHelp.
In example, you could check the timestamp of the corresponding certificate file in your script.

Re: Lets Encrypt final execution hook

Posted: Mon 31. Jan 2022, 11:47
by latifolia
Jolinar wrote: Mon 31. Jan 2022, 11:44
latifolia wrote: Mon 31. Jan 2022, 11:10 The local script for CLoudflare is ready, just need info how to attach it on last action by Lets Encrypt in KeyHelp.
In example, you could check the timestamp of the corresponding certificate file in your script.
Yes, thats what I have been implementing but I have idea in mind that things will get easier if I just attach it on last execution of Lets Encrypt action
in KeyHelp, so the core of problem is : "how to attach it on last action by Lets Encrypt in KeyHelp" so the script will be autocalled by Lets Encrypt.

I assume it will change the source code of KeyHelp? because KeyHelp has made some private customizations on Lets Encrypt mechanism ?

Re: Lets Encrypt final execution hook

Posted: Mon 31. Jan 2022, 12:23
by Tobi
You can easily write your own API application.
This application could renew the cert and aftwards change cloudflare.

KeyHelp does not support such triggered actions (yet).