acmesh-official / acme.sh

A pure Unix shell script implementing ACME client protocol
https://acme.sh
GNU General Public License v3.0
39.39k stars 4.97k forks source link

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

Open bcraigie opened 1 week ago

bcraigie commented 1 week ago

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

github-actions[bot] commented 1 week ago

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.

bcraigie commented 6 days ago

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