mitmproxy
Install
emerge -av mitmproxy mitmproxy
docker run --rm -it -p 8080:8080 -p 127.0.0.1:8081:8081 mitmproxy/mitmproxy mitmweb --web-host 0.0.0.0
Install Certificates
This is necessary becaseu MITM needs it. See http://mitm.it/ for details and to get the certificates.
curl '' > /usr/share/ca-certificates/mitmproxy.crt echo 'mitmproxy.crt' > /etc/ca-certificates/mitmroxy.conf
This may require you to edit /etc/ca-certificates.conf file directly to add mimtproxy cert.
Update CA
update-ca-certificates
Using MITM in Chrome
google-chrome-stable \ --proxy-server="127.0.0.1:8080" --password-store=basic \ --user-data-dir=/home/user/.browser-profile/edoceo.com
And then you navigate to chrome://settings/certificates?search=SSL And the import the SSL Certificates.
- Open Certificate Manager
- Select Local Certificates
- Custom Section / Installed By You
- Use Import button
Shown Here: https://stackoverflow.com/questions/7580508/getting-chrome-to-accept-self-signed-localhost-certificate/15076602#15076602
https://mitmproxy.org/ https://docs.mitmproxy.org/stable/concepts-howmitmproxyworks/ https://docs.mitmproxy.org/stable/concepts-certificates/ https://wiki.gentoo.org/wiki/Certificates#Obtaining_the_certificate https://github.com/mitmproxy/mitmproxy/issues/4455