OpenSSL.crypto.X509Extension object is not serializable (#32944)

This commit is contained in:
jirikotlin, jiri.kotlin@ultimum.io 2016-04-29 18:40:12 +02:00 committed by Nicole Thomas
parent 187fcb236f
commit 79a6dc890f

View File

@ -1574,7 +1574,7 @@ def cert_info(cert_path, digest='sha256'):
ret['extensions'] = {}
for i in _range(cert.get_extension_count()):
ext = cert.get_extension(i)
ret['extensions'][ext.get_short_name()] = ext
ret['extensions'][ext.get_short_name()] = str(ext)
if 'subjectAltName' in ret.get('extensions', {}):
valid_names = set()