diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2011-03-18 16:45:31 +1300 | 
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2011-03-18 16:45:31 +1300 | 
| commit | e22fd74d06bf646e7da95cde8f7238763f081276 (patch) | |
| tree | 46b8bd42a25a45066c80a7ed4204ac9db2777c04 /test/test_utils.py | |
| parent | 3fbf343985cd1a957514ebcc54fee067c18b99ea (diff) | |
| download | mitmproxy-e22fd74d06bf646e7da95cde8f7238763f081276.tar.gz mitmproxy-e22fd74d06bf646e7da95cde8f7238763f081276.tar.bz2 mitmproxy-e22fd74d06bf646e7da95cde8f7238763f081276.zip | |
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.
Diffstat (limited to 'test/test_utils.py')
| -rw-r--r-- | test/test_utils.py | 6 | 
1 files changed, 6 insertions, 0 deletions
| 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): | 
