Charles Https抓包–windows篇

今天帮同事配置charles https手机抓包,windows端相比mac端还是有不少坑。 

1.安装3.10之后的charles,3.10之前的不适用本方法

2.打开charles -> Help -> SSL Proxying -> Install Charles Root Certificate安装证书

windows下这里有个坑,安装证书的时候不能选择自动,必须选择受信任的根证书颁发机构,这点在官方文档中也有相应的说明:

Windows / Internet Explorer

In Charles go to the Help menu and choose “SSL Proxying > Install Charles Root Certificate”. A window will appear warning you that the CA Root certificate is not trusted.

Click the “Install Certificate” button to launch the Certificate Import Wizard. The certificate must be imported into the “Trusted Root Certification Authorities” certificate store, so override the automatic certificate store selection.

Complete the wizard and your Charles Root Certificate is now installed. You may need to restart IE before the installation takes affect.

3.手机连接charles代理

4.手机打开浏览器输入www.charlesproxy.com/getssl安装证书到手机

5.打开proxy->ssl proxy->enable ssl proxy勾选,location中添加你要抓包的https网站,端口为443

p.s:3.10之前的charles ssl代理证书似乎有问题一直不成功

     电脑端安装好证书后,手机一定要先连代理再安装证书,不然不成功

发表评论

电子邮件地址不会被公开。 必填项已用*标注