mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-02 00:05:27 +00:00
Merge pull request #2925 from mhils/clientcert-from-sni
Use sni to select clientcerts
This commit is contained in:
commit
494390bf07
@ -286,7 +286,8 @@ class ServerConnection(tcp.TCPClient, stateobject.StateObject):
|
||||
else:
|
||||
path = os.path.join(
|
||||
client_certs,
|
||||
self.address[0].encode("idna").decode()) + ".pem"
|
||||
(sni or self.address[0].encode("idna").decode()) + ".pem"
|
||||
)
|
||||
if os.path.exists(path):
|
||||
client_cert = path
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user