Use current UTC time for comparison against certificate validity. Closes #14. Thanks, mozz!
This commit is contained in:
parent
6b17792546
commit
fecd46378c
2
av98.py
2
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
|
||||
|
|
Loading…
Reference in New Issue