aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_server.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2014-03-05 17:25:12 +1300
committerAldo Cortesi <aldo@nullcube.com>2014-03-05 17:28:04 +1300
commitd65f2215cb9191a24b36ad6a4fcbf474798d3b2d (patch)
treece2c0a84fa3e011abcd521a85b507d9bc62fd198 /test/test_server.py
parent32af66881465ae98a53665c8ddd42c02aaf492f7 (diff)
downloadmitmproxy-d65f2215cb9191a24b36ad6a4fcbf474798d3b2d.tar.gz
mitmproxy-d65f2215cb9191a24b36ad6a4fcbf474798d3b2d.tar.bz2
mitmproxy-d65f2215cb9191a24b36ad6a4fcbf474798d3b2d.zip
Much more sophisticated cert handling
- Specify per-domain certificates and keys - Certs are no longer regenerated for SANs - And more. :)
Diffstat (limited to 'test/test_server.py')
-rw-r--r--test/test_server.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_server.py b/test/test_server.py
index 2714ef52..ed21e75c 100644
--- a/test/test_server.py
+++ b/test/test_server.py
@@ -213,8 +213,9 @@ class TestHTTPSNoCommonName(tservers.HTTPProxTest):
"""
ssl = True
ssloptions=pathod.SSLOptions(
- certfile = tutils.test_data.path("data/no_common_name.pem"),
- keyfile = tutils.test_data.path("data/no_common_name.pem"),
+ certs = [
+ ("*", tutils.test_data.path("data/no_common_name.pem"))
+ ]
)
def test_http(self):
f = self.pathod("202")