X-Git-Url: https://git.ralfj.de/lets-encrypt-tiny.git/blobdiff_plain/3e4fa8f0f27e3af00f40873e9cf64b0b0a31b5a6..56f8399b05fb0e1ee81d0ad1845a0c64a109d6ab:/letsencrypt-tiny diff --git a/letsencrypt-tiny b/letsencrypt-tiny index 6df989b..26b2c1d 100755 --- a/letsencrypt-tiny +++ b/letsencrypt-tiny @@ -124,7 +124,7 @@ def auto_renewal(live, staging): now = datetime.datetime.now() key_age = now - key_mtime(live) need_new_key = key_age >= max_key_age - if os.path.exists(live): + if os.path.exists(certfile(live)): cert_validity = cert_expiry(live) - now need_new_cert = cert_validity <= renew_cert_time else: