mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Drop cert expiry time to avoid a bug in some OpenSSL versions.
This commit is contained in:
parent
aa7f8ac90b
commit
5936a48e59
@ -17,6 +17,7 @@ import time, functools, copy, cgi
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
CERT_SLEEP_TIME = 1
|
CERT_SLEEP_TIME = 1
|
||||||
|
CERT_EXPIRY = str(365 * 3)
|
||||||
|
|
||||||
def timestamp():
|
def timestamp():
|
||||||
"""
|
"""
|
||||||
@ -339,7 +340,7 @@ def dummy_ca(path):
|
|||||||
"-x509",
|
"-x509",
|
||||||
"-config", data.path("resources/ca.cnf"),
|
"-config", data.path("resources/ca.cnf"),
|
||||||
"-nodes",
|
"-nodes",
|
||||||
"-days", "9999",
|
"-days", CERT_EXPIRY,
|
||||||
"-out", path,
|
"-out", path,
|
||||||
"-newkey", "rsa:1024",
|
"-newkey", "rsa:1024",
|
||||||
"-keyout", path,
|
"-keyout", path,
|
||||||
@ -434,7 +435,7 @@ def dummy_cert(certdir, ca, commonname):
|
|||||||
"x509",
|
"x509",
|
||||||
"-req",
|
"-req",
|
||||||
"-in", reqpath,
|
"-in", reqpath,
|
||||||
"-days", "9999",
|
"-days", CERT_EXPIRY,
|
||||||
"-out", certpath,
|
"-out", certpath,
|
||||||
"-CA", ca,
|
"-CA", ca,
|
||||||
"-CAcreateserial",
|
"-CAcreateserial",
|
||||||
@ -457,7 +458,7 @@ def dummy_cert(certdir, ca, commonname):
|
|||||||
"-x509",
|
"-x509",
|
||||||
"-config", confpath,
|
"-config", confpath,
|
||||||
"-nodes",
|
"-nodes",
|
||||||
"-days", "9999",
|
"-days", CERT_EXPIRY,
|
||||||
"-out", certpath,
|
"-out", certpath,
|
||||||
"-newkey", "rsa:1024",
|
"-newkey", "rsa:1024",
|
||||||
"-keyout", certpath,
|
"-keyout", certpath,
|
||||||
|
Loading…
Reference in New Issue
Block a user