summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mozilla/certdata2pem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mozilla/certdata2pem.py b/mozilla/certdata2pem.py
index ede23d4..3bd24f3 100644
--- a/mozilla/certdata2pem.py
+++ b/mozilla/certdata2pem.py
@@ -123,7 +123,7 @@ for obj in objects:
continue
cert = x509.load_der_x509_certificate(obj['CKA_VALUE'])
- if cert.not_valid_after < datetime.datetime.now():
+ if cert.not_valid_after < datetime.datetime.utcnow():
print('!'*74)
print('Trusted but expired certificate found: %s' % obj['CKA_LABEL'])
print('!'*74)