From 56f8399b05fb0e1ee81d0ad1845a0c64a109d6ab Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 29 Jan 2023 22:36:16 +0100 Subject: [PATCH] fix certfile existence check --- letsencrypt-tiny | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2