mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
OpenSSL.crypto.X509Extension object is not serializable (#32944)
This commit is contained in:
parent
187fcb236f
commit
79a6dc890f
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user