1、电脑设置Charles代理端口
1)设置代理端口
Proxy-》Proxying Settings-》HTTP Proxy 设置端口
https>https://i-blog.csdnimg.cn/direct/053cc4dace504c30b3fb0d913087a8c6.png" width="1200" />
2)设置监控的代理地址
Proxy-》SSL Proxying Settings 添加Add允许所有地址*.*
https>https://i-blog.csdnimg.cn/direct/73c0d14ebd6f44e2b59dabce9bf6f3da.png" width="862" />
2、电脑导入Charles的ssl证书
https>https://i-blog.csdnimg.cn/direct/c9132241cd1f4e02834d8420b0861e73.png" width="1200" />
https>https://i-blog.csdnimg.cn/direct/061e4cec47014ce2b26acd4ed221fe4e.png" width="900" />
https>https://i-blog.csdnimg.cn/direct/f8b877bd940b424b9a79b09487c3dbd3.png" width="893" />
3、电脑查看Charles的IP地址和端口
https>https://i-blog.csdnimg.cn/direct/16f0a48b622a47638aac09086c1434e2.png" width="1200" />
https>https://i-blog.csdnimg.cn/direct/629510cccdaa4e03b3c1dca334d5a461.png" width="858" />
4、手机无线wifi配置代理
https>https://i-blog.csdnimg.cn/direct/6de241f273804b4ea1785747aef07d17.png" width="448" />
5、手机Safari浏览器下载描述文件
打开:http://chls.pro/ssl 点击允许下载
https>https://i-blog.csdnimg.cn/direct/f70aa2b9417546cfa01f8603ab064663.png" width="452" />
6、手机安装描述文件
通用-》VPN与设备管理-》选中刚下载的描述文件Charles Proxy CA-》安装
https>https://i-blog.csdnimg.cn/direct/d40e19942e394632b1943722ff81e1c8.png" width="448" />https>https://i-blog.csdnimg.cn/direct/b96728148f3749cfb6b6ff003ea0733f.png" width="440" />
7、手机设置证书信任
通用-》关于本机-》证书信任设置-》打开启用
https>https://i-blog.csdnimg.cn/direct/7dcb0271058741c4936a18a5751e23b7.png" width="454" />
8、配置完成了,试试:
https>https://i-blog.csdnimg.cn/direct/c7d546190be44568be340b1048ebc07f.png" width="970" />