reverseproxy: LE backdates certs by an hour

https://community.letsencrypt.org/t/valid-from-date-on-cert-off-by-1-hour/103239
This commit is contained in:
Girish Ramakrishnan
2023-02-01 12:52:37 +01:00
parent 3f70edf3ec
commit 54add73d2a

View File

@@ -262,7 +262,7 @@ function needsRenewalSync(cert, options) {
let isExpiring;
if (options.forceRenewal) {
isExpiring = (now - startDate) > (5 * 60 * 1000); // was renewed 5 minutes ago
isExpiring = (now - startDate) > (65 * 60 * 1000); // was renewed 5 minutes ago. LE backdates issue date by 1 hour for clock skew
} else {
isExpiring = (endDate - now) <= (30 * 24 * 60 * 60 * 1000); // expiring in a month
}