Skip to content

Renew hook documentation #4548

Answered by FarrelF
dubidubno asked this question in Q&A
Mar 10, 2023 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

In acme.sh code, there is a few lines that export some variables, including CERT_PATH, CERT_KEY_PATH, CA_CERT_PATH, Le_Domain + DOMAIN_PATH that you can try to insert it to your renew hook script.

About working directory, it seems that acme.sh using cd to $DOMAIN_PATH, that's how they're using certificate file path as a working directory.

tl;dr: All of these variables can display outputs perfectly without any errors while executing renew hook, even when you're using these variables in script file as a renew hook. So you can pass the domain folder name and certificate file path with exported variable to your renew hook script if needed.

To be honest, I just tried all of these variables in …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@FarrelF
Comment options

Answer selected by Neilpang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants