mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-12-04 04:37:15 +00:00
parent
1c6f714193
commit
ac1a700fa1
@ -96,7 +96,7 @@ def dummy_cert(ca, commonname, sans):
|
|||||||
key = OpenSSL.crypto.load_privatekey(OpenSSL.crypto.FILETYPE_PEM, raw)
|
key = OpenSSL.crypto.load_privatekey(OpenSSL.crypto.FILETYPE_PEM, raw)
|
||||||
|
|
||||||
cert = OpenSSL.crypto.X509()
|
cert = OpenSSL.crypto.X509()
|
||||||
cert.gmtime_adj_notBefore(-3600)
|
cert.gmtime_adj_notBefore(-3600*48)
|
||||||
cert.gmtime_adj_notAfter(60 * 60 * 24 * 30)
|
cert.gmtime_adj_notAfter(60 * 60 * 24 * 30)
|
||||||
cert.set_issuer(ca.get_subject())
|
cert.set_issuer(ca.get_subject())
|
||||||
cert.get_subject().CN = commonname
|
cert.get_subject().CN = commonname
|
||||||
|
Loading…
Reference in New Issue
Block a user