aboutsummaryrefslogtreecommitdiffstats
path: root/test/tservers.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-06-24 09:27:08 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-06-24 09:27:08 +1200
commitdb6576ca6f3133eda61551a4827723997562b928 (patch)
tree0a6079230d85e99bd80d54588f495d397f82e246 /test/tservers.py
parent80dd703a2a230ace2159d47e499fbb1196bba27e (diff)
parent4766bce63d787888f9d4ed07e9ce0b63764b22d1 (diff)
downloadmitmproxy-db6576ca6f3133eda61551a4827723997562b928.tar.gz
mitmproxy-db6576ca6f3133eda61551a4827723997562b928.tar.bz2
mitmproxy-db6576ca6f3133eda61551a4827723997562b928.zip
Merge pull request #76 from kyle-m/master
Provide debugging information when upstream server certificate fails validation
Diffstat (limited to 'test/tservers.py')
-rw-r--r--test/tservers.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/tservers.py b/test/tservers.py
index 09f1b095..5e99c0e2 100644
--- a/test/tservers.py
+++ b/test/tservers.py
@@ -72,10 +72,9 @@ class TServer(tcp.TCPServer):
h = self.handler_klass(request, client_address, self)
self.last_handler = h
if self.ssl is not None:
- raw_cert = self.ssl.get(
+ cert = self.ssl.get(
"cert",
tutils.test_data.path("data/server.crt"))
- cert = certutils.SSLCert.from_pem(open(raw_cert, "rb").read())
raw_key = self.ssl.get(
"key",
tutils.test_data.path("data/server.key"))