diff options
author | Rob Austein <sra@hactrn.net> | 2009-05-30 06:38:19 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2009-05-30 06:38:19 +0000 |
commit | ac310260a2900e565127fe1f958a1d2c5a80efa0 (patch) | |
tree | 7783cba71ffb2b441933bf14d521cfc99be504f0 /scripts/tls-client.py | |
parent | 4448460b779c6e138b4c8e37e02bac0bd41fc1d0 (diff) |
Show peer certificates
svn path=/scripts/tls-client.py; revision=2477
Diffstat (limited to 'scripts/tls-client.py')
-rw-r--r-- | scripts/tls-client.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/tls-client.py b/scripts/tls-client.py index d0c59f3e..ef879a5c 100644 --- a/scripts/tls-client.py +++ b/scripts/tls-client.py @@ -19,5 +19,9 @@ ssl.trustCertificate(ta) ssl.setFd(s.fileno()) ssl.connect() +peer = ssl.peerCertificate() +if peer is not None: + print peer.pprint() + print ssl.read(100) ssl.write("Bye") |