diff options
| author | ikoz <john@kozyrakis.gr> | 2016-03-15 14:40:54 +0000 | 
|---|---|---|
| committer | ikoz <john@kozyrakis.gr> | 2016-03-15 14:40:54 +0000 | 
| commit | 9b970b0303d0cc0f7106da63108ab86dd05656bf (patch) | |
| tree | 1aa74805496352716a54206fa8496e6d6013f982 | |
| parent | 0169271bf993aa16b4d5627eda8523552661d7ef (diff) | |
| download | mitmproxy-9b970b0303d0cc0f7106da63108ab86dd05656bf.tar.gz mitmproxy-9b970b0303d0cc0f7106da63108ab86dd05656bf.tar.bz2 mitmproxy-9b970b0303d0cc0f7106da63108ab86dd05656bf.zip | |
fix for sslinfo cert chain printing bug - now all certs get printed
| -rw-r--r-- | pathod/pathoc.py | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/pathod/pathoc.py b/pathod/pathoc.py index c0a33b62..64a81c94 100644 --- a/pathod/pathoc.py +++ b/pathod/pathoc.py @@ -42,7 +42,8 @@ class SSLInfo(object):              "Cipher: %s, %s bit, %s" % self.cipher,              "SSL certificate chain:"          ] -        for i in self.certchain: +        for n,i in enumerate(self.certchain): +            parts.append("  Certificate [%s]" % n)              parts.append("\tSubject: ")              for cn in i.get_subject().get_components():                  parts.append("\t\t%s=%s" % cn) @@ -69,7 +70,7 @@ class SSLInfo(object):              s = certutils.SSLCert(i)              if s.altnames:                  parts.append("\tSANs: %s" % " ".join(s.altnames)) -            return "\n".join(parts) +        return "\n".join(parts) | 
