X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/51a7079eab309ad3c6cf0b05623680076e56687c..3c7a077610049f811e11b295e69772f69f30bdba:/cookbooks/letsencrypt/files/default/bin/check-certificate diff --git a/cookbooks/letsencrypt/files/default/bin/check-certificate b/cookbooks/letsencrypt/files/default/bin/check-certificate index d292b5622..303314fca 100755 --- a/cookbooks/letsencrypt/files/default/bin/check-certificate +++ b/cookbooks/letsencrypt/files/default/bin/check-certificate @@ -10,7 +10,7 @@ begin if Time.now < certificate.not_before puts "Certificate #{domain} not valid until #{certificate.not_before}" - elsif certificate.not_after - Time.now < 14 * 86400 + elsif certificate.not_after - Time.now < 21 * 86400 puts "Certificate #{domain} expires at #{certificate.not_after}" else subject_alt_name = certificate.extensions.find { |e| e.oid == "subjectAltName" }