diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-04-04 15:58:46 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-04-04 15:58:46 +1200 |
commit | 786e304bb9f01cee534ac8dfbd7503a1122c7ed1 (patch) | |
tree | 7220f284419a08319e4b65da2d9ba396b53ae267 /libmproxy | |
parent | 4da8054e215ec8594ac17075f116f9d26cee7bfa (diff) | |
download | mitmproxy-786e304bb9f01cee534ac8dfbd7503a1122c7ed1.tar.gz mitmproxy-786e304bb9f01cee534ac8dfbd7503a1122c7ed1.tar.bz2 mitmproxy-786e304bb9f01cee534ac8dfbd7503a1122c7ed1.zip |
Android configuration docs.
Diffstat (limited to 'libmproxy')
-rw-r--r-- | libmproxy/certutils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libmproxy/certutils.py b/libmproxy/certutils.py index 95dcc0fe..354db5ad 100644 --- a/libmproxy/certutils.py +++ b/libmproxy/certutils.py @@ -59,6 +59,11 @@ def dummy_ca(path): f.write(OpenSSL.crypto.dump_certificate(OpenSSL.crypto.FILETYPE_PEM, ca)) f.close() + # Create a .cer file with the same contents for Android + f = open(os.path.join(dirname, basename + "-cert.cer"), "w") + f.write(OpenSSL.crypto.dump_certificate(OpenSSL.crypto.FILETYPE_PEM, ca)) + f.close() + # Dump the certificate in PKCS12 format for Windows devices f = open(os.path.join(dirname, basename + "-cert.p12"), "w") p12 = OpenSSL.crypto.PKCS12() |