If you see below message when visiting http://mitm.it,
make sure: (1) mitmproxy is running and (2) iPhone is configured to use mitmproxy from above.
If you can see this, traffic is not passing through mitmproxy
On http://mitm.it,
click Get mitmproxy-ca-cert.pem for iOS -> Allow
This website is trying to download a configuration profile. Do you want to allow this? Ignore Allow
Click open Show Instructions (below Get mitmproxy-ca-cert.pem)
and follow the instructions.
iOS 13+1. Use Safari to download the certificate. Other browsers may not open the proper installation prompt.2. Install the new Profile (Settings -> General -> VPN & Device Management).3. Important: Go to Settings -> General -> About -> Certificate Trust Settings. Toggle mitmproxy to ON.
1. Use Safari to download the certificate
We just downloaded above.
2. Install the new Profile
Settings -> General -> VPN & Device Management
Select the downloaded profile, mitmproxy.
VPN Not Connected >Sign In to Work or School Account...DOWNLOADED PROFILEmitmproxy >
Press Install -> confirm Install
Cancel Install Profile InstallmitmproxySigned by mitmproxy Not VerifiedContains CertificateMore Details >Remove Downloaded Profile
Profile is installed.
Profile Installed DonemitmproxySigned by mitmproxy Verified ✅Contains CertificateMore Details >
3. Certificate Trust Settings
Settings -> General -> About -> Certificate Trust Settings
Toggle mitmproxy to ON
< About Certificate Trust SettingsTrust Store Version 2023032800Trust Asset Version 20ENABLE FULL TRUST FOR ROOT CERTIFICATESmitmproxy (🔘 )Learn more about trusted certificates
Ready
Run mitmproxy or mitmweb
❯ mitmweb[00:06:12.402] HTTP(S) proxy listening at *:8080.[00:06:12.404] Web server listening at http://127.0.0.1:8081/
Use
Now use your iPhone and network traffic from/to your iPhone will be logged on http://127.0.0.1:8081