diff options
author | Kyle Morton <kylemorton@google.com> | 2015-06-20 12:54:03 -0700 |
---|---|---|
committer | Kyle Morton <kylemorton@google.com> | 2015-06-22 16:48:09 -0700 |
commit | 7afe44ba4ee8810e24abfa32f74dfac61e5551d3 (patch) | |
tree | ddcec133c985d2105c6ddfa4d28c08736a95bca3 /test/tservers.py | |
parent | 2aa1b98fbf8d03005e022da86e3e534cf25ebf62 (diff) | |
download | mitmproxy-7afe44ba4ee8810e24abfa32f74dfac61e5551d3.tar.gz mitmproxy-7afe44ba4ee8810e24abfa32f74dfac61e5551d3.tar.bz2 mitmproxy-7afe44ba4ee8810e24abfa32f74dfac61e5551d3.zip |
Updating TCPServer to allow tests (and potentially other use cases) to serve
certificate chains instead of only single certificates.
Diffstat (limited to 'test/tservers.py')
-rw-r--r-- | test/tservers.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/tservers.py b/test/tservers.py index 899b51bd..5c1ea08b 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")) |