In case anyone else comes across this, here are the steps I used to successfully get the proxy working for Mac + iOS. The docs really need to be updated from the current āinstallation left as an exercise for the readerāā¦
-
Connect Mac and iPhone on the same Wi-Fi network.
-
Mac: install https://docs.mitmproxy.org/stable/overview-installation/#macos.
-
Mac: configure https://docs.mitmproxy.org/stable/howto-transparent/#macos (note have to sudo vim /etc/sudoers and use :w!).
-
Mac: get IP Address by option-clicking on wifi in menu bar (eg 10.112.105.76).
-
Mac > Terminal: run
mitmproxyand get PORT from bottom right (eg [*:8080]). -
iPhone > Settings > Wifi > tap active Wi-Fiās (i) symbol > Configure Proxy > Manual, server = 10.112.105.76, Port = 8080 > Save.
-
iPhone > Safari: go to mitm.it and install the certificate.
-
iPhone > Settings > General > About > Certificate Trust Settings > turn āEnable Full Trust For Root Certificatesā ON for mitmproxy.
P.S. there are much simpler ways of testing web app requests than using mitmproxyā¦