From 51789228beb18194a37fbde153247cb52b20cbf8 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 15 Apr 2012 12:48:07 +1200 Subject: [PATCH] Fix PKCS12 cert generation. --- libmproxy/certutils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libmproxy/certutils.py b/libmproxy/certutils.py index d52d9a56b..6ce2ea09d 100644 --- a/libmproxy/certutils.py +++ b/libmproxy/certutils.py @@ -67,6 +67,7 @@ def dummy_ca(path): f = open(os.path.join(dirname, basename + "-cert.p12"), "w") p12 = OpenSSL.crypto.PKCS12() p12.set_certificate(ca) + p12.set_privatekey(key) f.write(p12.export()) f.close() return True