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

0 Members and 2 Guests 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

Offline
*
Re: Acme.sh, try to renew all domain or subdomain removed
« Reply #19 on: January 17, 2025, 02:09:01 AM »
devloraa thank you for pushing on this and finding the real answer. I also found that folder but it wasn't clear if removing the folder would have the desired effect or not. In my situation I was installing a paid certificate and it kept getting over-written upon renewal of the R3 cert. Specifics: I had deleted the R3 cert via the CWP panel and then did an install of the paid cert. The delete does not remove the directory in the folder ( /root/.acme.sh/cwp_certs ) hence upon renewal it overwrites the paid cert.

Again thank you!