3.10以上charles版本抓取Https数据包

charles3.10一下的版本抓包参见一下文章即可:

http://www.cnblogs.com/liyuanhong/articles/4428133.html

charles3.10抓包,官网https://www.charlesproxy.com/documentation/additional/legacy-ssl-proxying/ 上有记载:

Version of Charles prior to v3.10 used a single SSL Root Certificate. You can still download the legacy certificate bundle here or the certificate itself here (for installing on mobile devices). Note that these certificates will not work on Charles v3.10.

If you are running Charles v3.10 or later, please go to Charles and consult the SSL Proxying submenu in the Help menu, for instructions on installing your new Charles Root Certificate.

You can also check the documentation on SSL Certificates for instructions for installing your Charles Root Certificate on various devices.

因此,如果你使用的是charles3.10或以上的版本(笔者这里使用的是charles 4.0.1 mac 版本)

首先点击菜单栏 help ----  SSL Proxying ----  install Charles root certificate 进入如下界面:

3.10以上charles版本抓取Https数据包_第1张图片

将证书拖到系统中,并且右键信任该证书:官网是这样描述的:

Mac OS X

In Charles go to the Help menu and choose "SSL Proxying > Install Charles Root Certificate". Keychain Access will open, and prompt you about the certificate. Click the "Always Trust" button. You will then be prompted for your Administrator password to update the system trust settings.

然后,点击菜单栏 help ----  SSL Proxying ----  install Charles root certificate on Mobile device or remote browser进入如下界面:

3.10以上charles版本抓取Https数据包_第2张图片

在ios设备上打开Safari输入红色的地址:chls.pro/ssl(注意,你的设备已经连上了charles)

安装完浏览器唤起的证书安装,之后就可以正常抓起https的数据包了




你可能感兴趣的:(网络,问题解决,Test,综合能力)