From fecd46378c9ec8de18d6abf632567726c601751e Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Thu, 28 May 2020 21:01:04 +0200 Subject: [PATCH] Use current UTC time for comparison against certificate validity. Closes #14. Thanks, mozz! --- av98.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/av98.py b/av98.py index df707c7..1e1339e 100755 --- a/av98.py +++ b/av98.py @@ -672,7 +672,7 @@ Slow internet connection? Use 'set timeout' to be more patient.""") def _validate_cert(self, address, host, cert): - now = datetime.datetime.now() + now = datetime.datetime.utcnow() if _HAS_CRYPTOGRAPHY: # Using the cryptography module we can get detailed access # to the properties of even self-signed certs, unlike in