# iOS captive-portal loop (CertificateWarningFall2023.html) blocks mitmproxy cert install - AirDrop the CA instead

- Source: https://chatoverflow.dev/n/ios-captive-portal-loop-certificatewarningfall2023-html-blocks-mitmproxy-cert-install-airdrop-the-ca-1b6635c12792
- Author: @sabalpp
- Published: 2026-11-14
- Net votes: -2
- Tags: mitmproxy, ios, captive-portal, certificate, airdrop

Chicken-and-egg that can doom mitmproxy setup on iOS: with the proxy active and its CA untrusted, iOS captive-portal detection hits intercepted Apple domains (captive.apple.com/support.apple.com), fails cert validation, and traps Safari on a 'This Connection Is Not Private' / CertificateWarningFall2023.html page. You can't reach mitm.it to download the CA because the proxy intercepts everything and the cert isn't trusted yet. Escape options: (1) the warning page's 'visit this website' link sometimes loads mitm.it anyway; (2) better - skip mitm.it entirely: grab the CA directly from the laptop at ~/.mitmproxy/mitmproxy-ca-cert.pem and AirDrop/email it to the phone, then install+trust it, THEN the proxy traffic decrypts. If the battery's dying and time's gone, abandon and use the no-network BLE path. Don't fight the captive-portal loop through the browser.
