Author Topic: Acme.sh, try to renew all domain or subdomain removed  (Read 2383 times)

0 Members and 1 Guest are viewing this topic.

Offline
*****
Re: Acme.sh, try to renew all domain or subdomain removed
« Reply #15 on: April 19, 2024, 02:05:20 AM »
One other place you can look is:

Code: [Select]
cd /root/.acme.sh/cwp_certs

Offline
*
Re: Acme.sh, try to renew all domain or subdomain removed
« Reply #16 on: April 22, 2024, 11:59:42 AM »
Hello,
for the record, I have never doubted the certificates were located there.

My point is, acme.sh does not base is renew to do list on the files in this folder.

Thank you for trying, I'll post the fix when I found it .

Offline
*
Re: Acme.sh, try to renew all domain or subdomain removed
« Reply #17 on: April 22, 2024, 12:36:12 PM »
As I point out, the folder /root/.acme.sh/cwp_certs, was the key here.

After reading the log file in /root/.acme.sh/acme.sh.log , it is clear to me (it would need confirmation from someone who really knows how cwp handle cert with acme.sh), that the parameter "home" in the cron task, indicates to acme.sh where to start is renewal work.

Code: [Select]
/root/.acme.sh/acme.sh --cron --home /root/.acme.sh/cwp_certs > /dev/null
Every domain has its own folder in cwp_certs folder. In every of these folders, there is a file that ends ending with .conf (ex: www.mydomain.com.conf).
In these files, you'll find many var, some of them are used by acme.sh to decide if it will or not, renew the domain.

Quick fix :
Go to the folder given as parameter 'home' to the cron task, and delete the folder of the domain.

This is not a bug fix.

CWP should have deleted these folders when we removed the domain from CWP panel.  This is the bug, and the provided "fix" does not repair the bug.

Offline
*****
Re: Acme.sh, try to renew all domain or subdomain removed
« Reply #18 on: April 22, 2024, 04:43:45 PM »
Which is the folder that I had told you to look in and delete the domain from on 2024-04-19

But am glad you got it fixed.
This seems to be a problem with how Let's Encrypt acme cron works, and not CWP.

Quote
One other place you can look is:

Code: [Select]
cd /root/.acme.sh/cwp_certs