Control Web Panel

WebPanel => Information => Topic started by: luca on April 04, 2025, 03:02:27 PM

Title: check all autoSSL (Lets encrypt) that failed
Post by: luca on April 04, 2025, 03:02:27 PM
Isnt there a way to check all autoSSL (Lets encrypt) that failed ?

Thanks.
Title: Re: check all autoSSL (Lets encrypt) that failed
Post by: anandmys on April 12, 2025, 10:54:55 AM
It will be an useful option.

I have encountered many times many renewals have failed.

If we can run renew automatically once in a while, it wlll be useful
Title: Re: check all autoSSL (Lets encrypt) that failed
Post by: rcschaff on April 12, 2025, 12:59:20 PM
cat /root/.acme.sh/cwp_certs/acme.sh.log | more
Title: Re: check all autoSSL (Lets encrypt) that failed
Post by: overseer on April 12, 2025, 01:48:04 PM
Code: [Select]
grep "Verification error" /root/.acme.sh/cwp_certs/acme.sh.log | less
Title: Re: check all autoSSL (Lets encrypt) that failed
Post by: luca on May 02, 2025, 04:45:33 PM
Thanks! No way for an integrated feature in the panel? To alert us, etc?
Title: Re: check all autoSSL (Lets encrypt) that failed
Post by: Netino on May 03, 2025, 01:31:27 AM
Thanks! No way for an integrated feature in the panel? To alert us, etc?

While this feature is not implemented in CWP, you can use this command in cron, to be alerted:

Code: [Select]
# find /etc/pki/tls/certs -type f -name \*.cert -mtime +60 | sed -e 's#^/etc/pki/tls/certs/##g' -e 's#\.cert$##' | xargs -I '{}' bash -c 'echo -e "Domain Cert {} expired.\n.\n" | mail -s "ALERT: Domain Cert {} expired" your-mail@yourdomain.com'
Regards,
Netino