From 65b8b65ebc47ed9b610e0df765e273df6a27ce6a Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 27 Feb 2018 19:05:52 +0100 Subject: [PATCH] add missing client_certs directory expansion --- mitmproxy/connections.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mitmproxy/connections.py b/mitmproxy/connections.py index e8fc4fbf4..29ab6ab5e 100644 --- a/mitmproxy/connections.py +++ b/mitmproxy/connections.py @@ -281,6 +281,7 @@ class ServerConnection(tcp.TCPClient, stateobject.StateObject): raise ValueError("sni must be str, not " + type(sni).__name__) client_cert = None if client_certs: + client_certs = os.path.expanduser(client_certs) if os.path.isfile(client_certs): client_cert = client_certs else: