- 首先确保手机与计算机在同一局域网内
- 查看证书是否受信任
- 路径:Charles -> Help -> SSL Procying -> Install Charles Root Certificeate,点击‘证书路径’查看
- 如果显示为该证书没有问题,则进行下一步;
- 如果显示证书不在受信任列表啥的,就去 “ 常规-下载证书-下一步-证书存储:浏览路径-选择:受信任的根证书颁发机构 ” ,保存即可进行下一步
- 路径:Charles -> Help -> SSL Procying -> Install Charles Root Certificeate,点击‘证书路径’查看
- 然后去手机端下载证书
- 先在PC端路径Charles -> Help -> SSL Procying -> Install Charles Root Certificate on a Mobile Device or Remote Browser 点击弹出下面信息
- 然后打开手机,
- 设置 -> WiFi -> 点击同一局域网下的WiFi连接,点击WiFi后面的感叹号 -> 代理设置,输入上图弹框中的服务器和端口号进行保存
- 打开手机浏览器,输入 chls.pro/ssl ,下载证书
-
浏览器显示如下:
-
Configure your device to use Charles as its HTTp proxy on 192.168.4.85:8888then browse to chls,pro/ssl to download and install the certificate.
Note that on i0S 10 and later you must then go into Settings > General > About >Certificate Trust Settings and enable the Charles certificate to be trusted.
-
-
然后随便打开一下手机的页面,比如淘宝,PC端弹出提示点击 "Allow" 允许,即可成功抓包
-
注意检查PC端的代理,要关闭!!!
- 首先确保手机与计算机在同一局域网内
- 查看证书是否受信任
- 路径:Charles -> Help -> SSL Procying -> Install Charles Root Certificeate,点击‘证书路径’查看
- 如果显示为该证书没有问题,则进行下一步;
- 如果显示证书不在受信任列表啥的,就去 “ 常规-下载证书-下一步-证书存储:浏览路径-选择:受信任的根证书颁发机构 ” ,保存即可进行下一步
- 路径:Charles -> Help -> SSL Procying -> Install Charles Root Certificeate,点击‘证书路径’查看
- 然后去手机端下载证书
- 先在PC端路径Charles -> Help -> SSL Procying -> Install Charles Root Certificate on a Mobile Device or Remote Browser 点击弹出下面信息
- 然后打开手机,
- 设置 -> WiFi -> 点击同一局域网下的WiFi连接,点击WiFi后面的感叹号 -> 代理设置,输入上图弹框中的服务器和端口号进行保存
- 打开手机浏览器,输入 chls.pro/ssl ,下载证书
-
浏览器显示如下:
-
Configure your device to use Charles as its HTTp proxy on 192.168.4.85:8888then browse to chls,pro/ssl to download and install the certificate.
Note that on i0S 10 and later you must then go into Settings > General > About >Certificate Trust Settings and enable the Charles certificate to be trusted.
-
-
然后随便打开一下手机的页面,比如淘宝,PC端弹出提示点击 "Allow" 允许,即可成功抓包
-
注意检查PC端的代理,要关闭!!!