使用Charles抓https接口

1、安装根证书:help - ssl proxying - install charles root certificate

使用Charles抓https接口

2、这时候会弹出一个根证书界面,如果没有弹出,则可以去chrome,高级设置里面找。

使用Charles抓https接口

3、双击对应证书,打开简介,因为一开始是不被信任的,信任。

使用Charles抓https接口

4、配置要抓取的https地址,菜单栏 - proxy - ssl proxy settings

hsot为你要匹配的域名,*表示任意匹配

port为网页浏览端口号:填443

使用Charles抓https接口

5、重启charles。

6、安卓手机需要下载证书,浏览器打开到chls.pro/ss,下载证书,并安装。

7、设置手机代理

使用Charles抓https接口