fix for sslinfo cert chain printing bug - now all certs get printed
This commit is contained in:
parent
0169271bf9
commit
9b970b0303
|
@ -42,7 +42,8 @@ class SSLInfo(object):
|
||||||
"Cipher: %s, %s bit, %s" % self.cipher,
|
"Cipher: %s, %s bit, %s" % self.cipher,
|
||||||
"SSL certificate chain:"
|
"SSL certificate chain:"
|
||||||
]
|
]
|
||||||
for i in self.certchain:
|
for n,i in enumerate(self.certchain):
|
||||||
|
parts.append(" Certificate [%s]" % n)
|
||||||
parts.append("\tSubject: ")
|
parts.append("\tSubject: ")
|
||||||
for cn in i.get_subject().get_components():
|
for cn in i.get_subject().get_components():
|
||||||
parts.append("\t\t%s=%s" % cn)
|
parts.append("\t\t%s=%s" % cn)
|
||||||
|
|
Loading…
Reference in New Issue