Due to package version restrictions by mitm the OpenSSL version it uses is old and causes issues (we want OpenSSL 1.1.1+)
git clone https://github.com/mitmproxy/mitmproxy.git # Clone repo
cd mitmproxy
sed -ie "s/pyOpenSSL[^\"]*/pyOpenSSL/;s/cryptography[^\"]*/cryptography/" setup.py # Remove restrictions on package versions
pip install .
mitmproxy
mitmproxy --version
This version is tied to the version of PyOpenSSL and cryptography (not python's), and it also seems to be capped by the system's OpenSSL version
If mitmproxy still refuses to work try:
- Using python3.6 (3.6.8 and 3.6.9 tested and working)
- Upgrading the system's OpenSSL to at least 1.1.1