Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Charles proxy doesn't work on my IOS device

Here's what I did so far:

  1. Install Charles on my mac
  2. Connect mac and iPhone to same WiFi network
  3. Charles->Proxy->SSL Proxy Settings. Enable for *
  4. General->About->Certificate Trust Settings and enable full trust for the Charles Proxy certificate.
  5. Charles->Help->Install Charles Root Certificate on a Mobile Device
  6. Configure iPhone to proxy to IP provided in step 3.

And then when I try to go to safari on my Iphone I get a "connection lost" error and It's impossible to browse.

Any solutions ? I'm on IOS 11.4

like image 627
Nicolas Vrillac Avatar asked Jul 18 '18 10:07

Nicolas Vrillac


People also ask

How do I use Charles proxy on iOS?

To use Charles as your HTTP proxy on your iPhone you must manually configure the HTTP Proxy settings on your WiFi network in your iPhone's Settings. Go to the Settings app, tap Wi-Fi, find the network you are connected to and then tap the blue disclosure arrow to configure the network.

How do I enable Charles certificate on my iPhone?

iOS devices If you are on iOS 10.3 or later, open the Settings. app and navigate to General > About > Certificate Trust Settings, and find the Charles Proxy certificate, and switch it on to enable full trust for it (More information about this change in iOS 10).


1 Answers

I used to have the same problem when SSL Proxying on iOS device then I changed to the following steps and it works:

  1. Install Root Certificate on my mac
  2. Configure Wifi Proxy on iOS device to Charles:
    • Server: 172.16.1.191
    • Port: 8888
  3. Open Safari on iOS device:
    • Browse to chls.pro/ssl to download and install the certificate
  4. Install Charles CA Certificate on your device:
    • iOS ≥ 10.3: Setting app > General > Profiles > Select Charles CA > Install
    • iOS ≥ 12.2: Setting app > Profiles Downloaded > Select Charles CA > Install
  5. Trust Charles CA Certificate on your device:
    • Setting app > General > About > Certificate Trust Settings > Switch ON on Charles CA

Honestly, this is based on the iOS Setup Guide of an app named Proxyman. They have similar features like Charles but the UX is better I suppose. Anw, hope it helps :)

Proxyman iOS Setup Guide

like image 178
gaku Avatar answered Sep 23 '22 00:09

gaku