acmesh-official / acme.sh

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

Unable to find certificate: "" and is not set. #5179

Open NeckBozia opened 2 weeks ago

NeckBozia commented 2 weeks ago

Steps to reproduce

docker中运行acme,SYNO_Certificate参数设置为”“,定时运行脚本

bash /volume1/docker/Acme/cert-up-docker.sh >>/volume1/docker/Acme/log.txt 2>&1

更新证书时报错 Unable to find certificate: "" and is not set. 此报错可稳定复现且未作任何配置改动

Debug log

[Tue Jun 18 11:52:32 UTC 2024] Your cert is in: /acme.sh/aaa.wang_ecc/aaa.wang.cer [Tue Jun 18 11:52:32 UTC 2024] Your cert key is in: /acme.sh/aaa.wang_ecc/aaa.wang.key [Tue Jun 18 11:52:32 UTC 2024] The intermediate CA cert is in: /acme.sh/aaa.wang_ecc/ca.cer [Tue Jun 18 11:52:32 UTC 2024] And the full chain certs is there: /acme.sh/aaa.wang_ecc/fullchain.cer [Tue Jun 18 11:52:32 UTC 2024] The domain 'aaa.wang' seems to have a ECC cert already, lets use ecc cert. [Tue Jun 18 11:52:33 UTC 2024] Logging into localhost:5000... [Tue Jun 18 11:52:33 UTC 2024] Getting certificates in Synology DSM... [Tue Jun 18 11:52:34 UTC 2024] Unable to find certificate: "" and is not set. [Tue Jun 18 11:52:34 UTC 2024] Error deploy for domain:aaa.wang [Tue Jun 18 11:52:34 UTC 2024] Deploy error.

github-actions[bot] commented 2 weeks 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.

sloganlau commented 1 week ago

I have the same issue with the latest image version(20240430) If set SYNO_Create=my domain, cer can be deployed with a new one instead of renew. 加了这个变量后能上传,但是会新建一个,而不是替换原来的

sloganlau commented 1 week ago

I have the same issue with the latest image version(20240430) If set SYNO_Create=my domain, cer can be deployed with a new one instead of renew. 加了这个变量后能上传,但是会新建一个,而不是替换原来的

change the default cer's desc from blank to ""

zzzdy110 commented 5 days ago

解决了吗 我也是这样 一模一样

sloganlau commented 5 days ago

解决了吗 我也是这样 一模一样

https://post.smzdm.com/p/akl2glrk/ 添加描述""