mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
tls.cert_info: strip newlines/spaces from extensions
This commit is contained in:
parent
d522d01786
commit
3ce2c3e2e4
@ -1642,7 +1642,7 @@ def cert_info(cert, digest='sha256'):
|
||||
try:
|
||||
ext = cert.get_extension(i)
|
||||
key = salt.utils.stringutils.to_unicode(ext.get_short_name())
|
||||
ret['extensions'][key] = str(ext)
|
||||
ret['extensions'][key] = str(ext).strip()
|
||||
except AttributeError:
|
||||
continue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user