-
After installing mitmproxy run it (just type
mitmproxy) in a terminal session and quit. This will create the necessaries certificates files at~/.mitmproxy. -
Extract the certificate to
.crtformat:
openssl x509 -in ~/.mitmproxy/mitmproxy-ca.pem -inform PEM -out ca.crt -
Trust the certificate into CA:
sudo trust anchor ca.crt -
Run the
mitmproxyagain