The default renew delay used by acme.sh is 60 days. This makes absolutely sense for 90-day certificates issued by LE. But amce.sh also supports other RFC-8555 compliant CAs. For eg. Sectigo issues 1-year certificates through ACME. In this case I think 60 days is not really appropriate. I know that one can set the delay (Le_RenewalDays) in each domain-conf but my idea would be to use openssl -enddate to determine the expiration date of a successful issued certificate and then substract the amount of days the certificate should be renewed earlier (eg. expiredate - 30 days).
I already run my own bash script as --post-hook to achieve this (I can provide the code if needed), but I think it could be a nice feature to have acme.sh support this out of the box...
The default renew delay used by acme.sh is 60 days. This makes absolutely sense for 90-day certificates issued by LE. But amce.sh also supports other RFC-8555 compliant CAs. For eg. Sectigo issues 1-year certificates through ACME. In this case I think 60 days is not really appropriate. I know that one can set the delay (
Le_RenewalDays) in each domain-conf but my idea would be to useopenssl -enddateto determine the expiration date of a successful issued certificate and then substract the amount of days the certificate should be renewed earlier (eg. expiredate - 30 days).I already run my own bash script as
--post-hookto achieve this (I can provide the code if needed), but I think it could be a nice feature to have acme.sh support this out of the box...