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

domain name gets _ecc appended then script complains it cannot find the key (as it doesn't append the _ecc)

Open bcraigie opened this issue 1 year ago • 4 comments

Using the latest (checked for update today)

"/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" --force --debug 2

The certificate is created with _ecc appended on the domain name, but when the renew hook runs, it does not append the _ecc so the certificate doesn't get hooked into Plesk although it has been renewed.

[Thu Nov 7 15:06:15 UTC 2024] Your cert is in: /root/.acme.sh/some_domain.com_ecc/some_domain.com.cer [Thu Nov 7 15:06:15 UTC 2024] Your cert key is in: /root/.acme.sh/some_domain.com_ecc/some_domain.com.key [Thu Nov 7 15:06:15 UTC 2024] The intermediate CA cert is in: /root/.acme.sh/some_domain.com_ecc/ca.cer [Thu Nov 7 15:06:15 UTC 2024] And the full-chain cert is in: /root/.acme.sh/some_domain.com_ecc/fullchain.cer [Thu Nov 7 15:06:15 UTC 2024] Running renew hook: '/usr/sbin/plesk bin certificate -u acme.sh_wildcard -domain some_domain.com -key-file ~/.acme.sh/some_domain.com/some_domain.com.key -cert-file ~/.acme.sh/some_domain.com/some_domain.com.cer -cacert-file ~/.acme.sh/some_domain.com/ca.cer' Unable to update certificate acme.sh_wildcard: File /root/.acme.sh/some_domain.com/some_domain.com.key does not exists

exit status 1 [Thu Nov 7 15:06:16 UTC 2024] Error encountered while running renew hook. [Thu Nov 7 15:06:16 UTC 2024] Error calling hook. [Thu Nov 7 15:06:16 UTC 2024] Error renewing some_domain.com_ecc. [Thu Nov 7 15:06:16 UTC 2024] ===End cron===

bcraigie avatar Nov 07 '24 15:11 bcraigie

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 Nov 07 '24 15:11 github-actions[bot]

As previously advised, already updated to latest release. Relevant debug 2 output provided.

bcraigie avatar Nov 08 '24 09:11 bcraigie

can you please post the hook content?

Neilpang avatar Mar 23 '25 20:03 Neilpang

新版能否增加一个参数,让路径不要带 _ecc ?否则很多程序都要改动。

lidalong50226 avatar Jun 04 '25 22:06 lidalong50226