mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
init ProxyConfig.certstore with custom certs
This commit is contained in:
parent
1dba379ae9
commit
e2501960d3
@ -25,6 +25,8 @@ class ProxyConfig:
|
|||||||
self.authenticator = authenticator
|
self.authenticator = authenticator
|
||||||
self.confdir = os.path.expanduser(confdir)
|
self.confdir = os.path.expanduser(confdir)
|
||||||
self.certstore = certutils.CertStore.from_store(self.confdir, CONF_BASENAME)
|
self.certstore = certutils.CertStore.from_store(self.confdir, CONF_BASENAME)
|
||||||
|
for spec, cert in certs:
|
||||||
|
self.certstore.add_cert_file(spec, cert)
|
||||||
self.certforward = certforward
|
self.certforward = certforward
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user