commit 4b4faf0836097e9f705dea107f60b81b425daf73
Author: David Fifield <david(a)bamsoftware.com>
Date: Tue Aug 27 21:10:44 2013 -0700
Increase certificate verify depth to 3 in other places.
---
facilitator/facilitator-email-poller | 2 +-
flashproxy-reg-email | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/facilitator/facilitator-email-poller b/facilitator/facilitator-email-poller
index 950de8e..bd70f34 100755
--- a/facilitator/facilitator-email-poller
+++ b/facilitator/facilitator-email-poller
@@ -110,7 +110,7 @@ class IMAP4_SSL_REQUIRED(imaplib.IMAP4_SSL):
cert_reqs=ssl.CERT_REQUIRED."""
def open(self, host = "", port = imaplib.IMAP4_SSL_PORT):
ctx = SSL.Context("tlsv1")
- ctx.set_verify(SSL.verify_peer, 2)
+ ctx.set_verify(SSL.verify_peer, 3)
ret = ctx.load_verify_locations(self.certfile)
assert ret == 1
diff --git a/flashproxy-reg-email b/flashproxy-reg-email
index 6d3f092..13ab5a5 100755
--- a/flashproxy-reg-email
+++ b/flashproxy-reg-email
@@ -260,7 +260,7 @@ if options.debug:
try:
ctx = SSL.Context("tlsv1")
- ctx.set_verify(SSL.verify_peer, 2)
+ ctx.set_verify(SSL.verify_peer, 3)
ca_certs_fd, ca_certs_path = tempfile.mkstemp(prefix="flashproxy-reg-email-",
dir=get_state_dir(), suffix=".crt")