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

dcf at torproject.org dcf at torproject.org
Fri Sep 28 06:11:19 UTC 2012


commit 2931e62b9933d84c6e5696abf1d273d2d8b36ae7
Author: David Fifield <david at bamsoftware.com>
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]:





More information about the tor-commits mailing list