From e22fd74d06bf646e7da95cde8f7238763f081276 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 18 Mar 2011 16:45:31 +1300 Subject: Revamp key generation. We now create three different files in the .mitmproxy directory when a dummy CA is made: mitmproxy-ca.pem - the CA, including private key mitmproxy-ca-cert.p12 - A pkcs12 version of the certificate, for distribution to Windows. mitmproxy-ca-cert.pem - A PEM version of the certificate, for distribution to everyone else. --- test/test_utils.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/test_utils.py') diff --git a/test/test_utils.py b/test/test_utils.py index 434d6b26..94523676 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -281,6 +281,12 @@ class udummy_ca(libpry.AutoTree): assert utils.dummy_ca(path) assert os.path.exists(path) + path = os.path.join(d, "foo/cert2.pem") + assert utils.dummy_ca(path) + assert os.path.exists(path) + assert os.path.exists(os.path.join(d, "foo/cert2-cert.pem")) + assert os.path.exists(os.path.join(d, "foo/cert2-cert.p12")) + class udummy_cert(libpry.AutoTree): def test_with_ca(self): -- cgit v1.2.3