diff options
Diffstat (limited to 'mozilla/certdata2pem.py')
-rw-r--r-- | mozilla/certdata2pem.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mozilla/certdata2pem.py b/mozilla/certdata2pem.py index 3bd24f3..4df86a2 100644 --- a/mozilla/certdata2pem.py +++ b/mozilla/certdata2pem.py @@ -122,7 +122,7 @@ for obj in objects: if not obj['CKA_LABEL'] in trust or not trust[obj['CKA_LABEL']]: continue - cert = x509.load_der_x509_certificate(obj['CKA_VALUE']) + cert = x509.load_der_x509_certificate(bytes(obj['CKA_VALUE'])) if cert.not_valid_after < datetime.datetime.utcnow(): print('!'*74) print('Trusted but expired certificate found: %s' % obj['CKA_LABEL']) |