PC:
  1. When Charles is set as the system Proxy, choose Proxy > Mac OS X Proxy from the menu to set Charles as the system Proxy

  1. SSL certificate installation and trust

Help >SSL Proxying> three kinds of certificates: keystring root certificate, emulator certificate, mobile phone and browser certificate

Select the keychain root certificate

Select the root certificate, the key string will pop up, and Charles certificate is not trusted. Double-click the certificate and set it to always trust

  1. Proxy and port number Settings resolve HTTPS request garbled characters

Proxy> SSL Proxy Setting

Adding an HTTPS Port

Host: * indicates that HTTPS is used to capture all websites

Port: 443

Mobile client:

Your phone’s WiFi must be on the same LOCAL area network as your computer

  1. Open Help->SSL Proxying->Install Charles Root Certificate on a Mobile Device or Remote Browser

  1. Turn on the WIFI of your mobile phone, connect to the WIFI of the same network as your PC, select the wireless network, add HTTP proxy :72.16.156.139:8888, then visit CHLS. Pro/SSL to download and install the certificate (go to Settings ->WLAN-> Advanced Settings -> Install certificate).