mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Fix PKCS12 cert generation.
This commit is contained in:
parent
2162ce1ae3
commit
51789228be
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user