一、charles安装证书,help->ssl Proxying->install Charles Root Certificate
二、Charles上进入Proxy菜单,选择SSL Proxying Setting,添加代理设置
三、抓取手机包设置
1.proxy setting配置代理端口等信息
2.移动端配置
理服务器主机名设置成PC的IP地址,可用cmd ipconfig查看。
3.手机端下载证书
然后在浏览器中打开:chls.pro/ssl
模拟器中会下载一个包含CA证书的数据文件,改成crt,然后安装证书即可