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