šŸ“ƒ Certificates: Quick Setup

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ā€ā€¦

  1. Connect Mac and iPhone on the same Wi-Fi network.

  2. Mac: install https://docs.mitmproxy.org/stable/overview-installation/#macos.

  3. Mac: configure https://docs.mitmproxy.org/stable/howto-transparent/#macos (note have to sudo vim /etc/sudoers and use :w!).

  4. Mac: get IP Address by option-clicking on wifi in menu bar (eg 10.112.105.76).

  5. Mac > Terminal: run mitmproxy and get PORT from bottom right (eg [*:8080]).

  6. iPhone > Settings > Wifi > tap active Wi-Fi’s (i) symbol > Configure Proxy > Manual, server = 10.112.105.76, Port = 8080 > Save.

  7. iPhone > Safari: go to mitm.it and install the certificate.

  8. 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…