commit fecd46378c9ec8de18d6abf632567726c601751e
parent 6b17792546747c134242ec59e2d10083ceece249
Author: Solderpunk <solderpunk@sdf.org>
Date: Thu, 28 May 2020 21:01:04 +0200
Use current UTC time for comparison against certificate validity. Closes #14. Thanks, mozz!
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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