From 7c8894bb043e00de4be7f6ca2c99e90ad0b45ad5 Mon Sep 17 00:00:00 2001 From: Jean-Michel Picod Date: Thu, 15 Apr 2021 17:22:38 +0200 Subject: [PATCH] Compare all timestamps using UTC timezone (#308) --- tools/configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/configure.py b/tools/configure.py index 9343490..5fa2da1 100755 --- a/tools/configure.py +++ b/tools/configure.py @@ -107,7 +107,7 @@ def main(args): cert = x509.load_pem_x509_certificate(args.certificate.read()) # Some sanity/validity checks - now = datetime.datetime.now() + now = datetime.datetime.utcnow() if cert.not_valid_before > now: fatal("Certificate validity starts in the future.") if cert.not_valid_after <= now: