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