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 進入如下介面:
將認證拖到系統中,並且右鍵信任該認證:官網是這樣描述的:
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進入如下介面:
在ios裝置上開啟Safari輸入紅色的地址:chls.pro/ssl(注意,你的裝置已經連上了charles)
安裝完瀏覽器喚起的認證安裝,之後就可以正常抓起https的資料包了