[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] Get peer certificate.



commit 2931e62b9933d84c6e5696abf1d273d2d8b36ae7
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Tue Sep 11 11:24:00 2012 -0700

    Get peer certificate.
---
 flashproxy-reg-email |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/flashproxy-reg-email b/flashproxy-reg-email
index c79f03b..71dcc51 100755
--- a/flashproxy-reg-email
+++ b/flashproxy-reg-email
@@ -176,6 +176,10 @@ try:
     finally:
         ca_certs_file.close()
 
+    peercert_pem = ssl.DER_cert_to_PEM_cert(smtp.sock.getpeercert(binary_form=True))
+    if options.debug:
+        print peercert_pem
+
     smtp.ehlo(EHLO_FQDN)
 
     if not options.remote_addr[0]:



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits