From 667d4e04749a4bc2212f58fa2b8c31cd1d91fc7b Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 16 Sep 2021 13:38:37 +0200 Subject: [PATCH] catch more tls errors where we know it's a trust issue --- mitmproxy/proxy/layers/tls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/proxy/layers/tls.py b/mitmproxy/proxy/layers/tls.py index bf6529260..bf2cc32c6 100644 --- a/mitmproxy/proxy/layers/tls.py +++ b/mitmproxy/proxy/layers/tls.py @@ -437,7 +437,7 @@ class ClientTLSLayer(_TLSLayer): f"Client and mitmproxy cannot agree on a TLS version to use. " f"You may need to adjust mitmproxy's tls_version_client_min option." ) - elif "unknown ca" in err or "bad certificate" in err: + elif "unknown ca" in err or "bad certificate" in err or "certificate unknown" in err: err = f"The client does not trust the proxy's certificate for {dest} ({err})" elif err == "connection closed": err = (