ACME.sh Can not renew certification

Using acme.sh to automatically renew certification. but it is failed. let us looks the detailed information.

acme.sh --renew-all

[Sun Aug 18 06:40:03 GMT 2024] Cannot find config file for domain domainame.ext
[Sun Aug 18 06:40:03 GMT 2024] Please add ‘–debug’ or ‘–log’ to see more information.
[Sun Aug 18 06:40:03 GMT 2024] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh

adding –debug , it gave same error and no other more information.

So found this issue on GitHub, just following the latest resolution.

https://github.com/acmesh-official/acme.sh/issues/1914

backup nginx.conf and using below content to replace nginx.conf , replace the yourdomain.name as your full domain name.

server {
        listen       80 default_server;
        server_name  yourdomain.name;
}

and restart nginx by execute

systemctl restart nginx

and then “acme.sh –renew-all” works. and then replace just now backed up file to nginx.conf, and then restart nginx

The reason here seems looks like it is showed at the issue: that acme.sh is not good with nginx on some condition.

Leave a Reply