acme.sh icon indicating copy to clipboard operation
acme.sh copied to clipboard

dns_cf api not saving environment variables

Open horsley opened this issue 9 months ago • 2 comments

From the doc:

Any environment variables that were set and used when issuing the certificate will be saved in ~/.acme.sh/account.conf so that they can be automatically reused in future when issuing new certificates or renewing existing certificates using dns_cf.

In the docker version acme.sh, I attach a shell and export those varibles and successfully issue the cert. While I check /acme.sh/account.conf ( LE_CONFIG_HOME="/acme.sh" in docker) there was no CF_XXX variable. I wonder whether the cert can re-issue next time

horsley avatar Mar 04 '25 03:03 horsley

Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade If it's still not working, please provide the log with --debug 2, otherwise, nobody can help you.

github-actions[bot] avatar Mar 04 '25 03:03 github-actions[bot]

Actually, variables were saved in domain conf /acme.sh/[domain]/[domain].conf, the path in doc was wrong

horsley avatar Mar 04 '25 03:03 horsley

if you use the global api key, it was saved in account.conf, if you use the CF_Zone_ID and CF_Token, it's saved in domain.conf

Neilpang avatar Mar 04 '25 19:03 Neilpang