diff options
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() |