Charles HTTPS Packet Capture Memo

PC

The setup on the PC is relatively simple and consists of two steps.

First download the certificate:

Then add the ssl rule [Proxy -> SSL Proxying Settings...]:

At this time, the website that opens HTTPS in the browser can capture the request (note that the Proxy should be changed to macOS Proxy, and then all proxies should be turned off locally)

iPhone

The mobile phone sets the HTTP proxy, and the server enters the computer's ip address, port 8888.

On the Charles toolbar, click Help, select SSL Proxying, and then select Install Charles Root Certificate on a Mobile Device or Remote Browser. A pop-up window will appear as follows:

Follow the prompts to enter <chls.pro/ssl> in the mobile browser to install the certificate

Then you need to enter [General -> About -> Certificate Trust Settings] to trust the certificate:

At this time, the website that enters HTTPS in the mobile browser can be captured in charles

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324867413&siteId=291194637