Are you getting a unsafe legacy renegotiation disabled
OpenSSL error from your mitmproxy while trying to snoop traffic between you and a weird server? Well, you've come to the right place.
Create this file :
ssl_conf = ssl_sect
[ssl_sect]
system_default = system_default_sect
[system_default_sect]
Options = UnsafeLegacyRenegotiation
Save it somewhere. We'll refer to it as $FOOBAR
.
Now just run mitmproxy by specifying the path to this file as an environment variable called OPENSSL_CONF
:
OPENSSL_CONF=$FOOBAR ./mitmproxy
Voilà.
All credit goes here : Kong/insomnia#4543 (comment) .