mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
Fix client certificate request feature.
This commit is contained in:
parent
643602c066
commit
5aad09ab81
@ -303,8 +303,8 @@ class BaseHandler:
|
|||||||
if request_client_cert:
|
if request_client_cert:
|
||||||
def ver(*args):
|
def ver(*args):
|
||||||
self.clientcert = certutils.SSLCert(args[1])
|
self.clientcert = certutils.SSLCert(args[1])
|
||||||
# err 20 = X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY
|
# Return true to prevent cert verification error
|
||||||
#return True
|
return True
|
||||||
ctx.set_verify(SSL.VERIFY_PEER, ver)
|
ctx.set_verify(SSL.VERIFY_PEER, ver)
|
||||||
self.connection = SSL.Connection(ctx, self.connection)
|
self.connection = SSL.Connection(ctx, self.connection)
|
||||||
self.ssl_established = True
|
self.ssl_established = True
|
||||||
|
Loading…
Reference in New Issue
Block a user