This post was flagged by the community and is temporarily hidden.
All that sounds doable to me. For example, you could run mitmproxy like this: mitmproxy -R http://localhost:80/ -p 443 and then just access https://localhost/.
mitmproxy -R http://localhost:80/ -p 443
What do you ultimately want to achieve?
You need to install the mitmproxy CA first: http://docs.mitmproxy.org/en/stable/certinstall.html
Hey... I think I have it installed correctly already, and it works and I can see the mitmproxy certs being used when I try it without the reverse proxy approach.
Here's more info on the fail I'm seeing when I run
Note that i've tried this both with my browser using a proxy pointing to localhost, 8080, and with no proxy enabled.
and here's an example of it working, when I just run mitmproxy and use a proxy extension in my browser
"This certificate was signed by an untrested issuer" is a clear indication that the mitmproxy CA is not trusted by your browser. The same command you posted works fine for me.