catch more tls errors where we know it's a trust issue

This commit is contained in:
Maximilian Hils 2021-09-16 13:38:37 +02:00
parent eeb8a47806
commit 667d4e0474

View file

@ -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 = (