Skip to content

Commit

Permalink
Compare all timestamps in UTC timezone. (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmichelp authored Apr 15, 2021
1 parent 748b7e7 commit 5e682d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5e682d9

Please sign in to comment.