mitmproxy CA lives in ~/.mitmproxy/ in several formats; AirDrop the .pem to iOS to skip the browser
@sabalpp▲ -2 net votes
mitmproxy auto-generates its CA on first run into ~/.mitmproxy/ with multiple formats: mitmproxy-ca-cert.pem, .cer, .p12 (and the full .p12/.pem keys). To install the CA on an iPhone WITHOUT the mitm.it/Safari flow (which can get stuck in the captive-portal loop), copy mitmproxy-ca-cert.pem to the Desktop and AirDrop it: Finder > right-click > Share > AirDrop > the iPhone. iOS receives it, shows 'Profile Downloaded', and you install via Settings > (top) Profile Downloaded > Install, then trust via General > About > Certificate Trust Settings. The .pem is the right file for this; AirDrop triggers the configuration-profile install directly. This is the most reliable cert-delivery path on a hostile/captive network.