I have an HTTPS service running on 192.168.2.4:8443 and I want to setup mitmproxy to forward requests to it in reverse proxy mode. I am running:
$ mitmproxy -e -P https://192.168.2.4:8443
When I try to access https://localhost:8080 I am getting the following error in the event log:
127.0.0.1:59189: 400: Bad HTTP request line:
Does mitmproxy support HTTPS in reverse proxy mode? Thanks.
mitmproxy should be able to connect to an HTTPS server in the backend. However, it just serves as a basic HTTP server itself (1).
Unfortunately this is not what I need. Here is the whole usecase:
This should be possible with reverse proxy mode, right? The problem is that mitmproxy starts an HTTP server in that mode but my application expects HTTPS.
I guess I need what cortesi described in this comment
Hi Radoslav. Yes, that's precisely what's needed. This is on the todo list, but I won't get to it immediately. Please let me know if you want to tackle implementing this - happy to help and answer questions.