From 786e304bb9f01cee534ac8dfbd7503a1122c7ed1 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 4 Apr 2012 15:58:46 +1200 Subject: Android configuration docs. --- libmproxy/certutils.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libmproxy') 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() -- cgit v1.2.3