Charles 抓包IOS中https乱码解决

来源:互联网 发布:java活锁 编辑:程序博客网 时间:2024/05/21 08:35

在使用Charles调试IOS程序的时候,一直抓取不到https的内容,一直是乱码,如何解决这种问题,明确的指出:ios的ssl证书已经进行安装,在mac系统中charles证书也已经安装,就是抓取https一直是乱码。

不成功显示结果为

SSLHandshake: Received fatal alert: unknown_ca

使用说明

Charles官网中在这么一段话,说明如何都正确设置还是抓取不到真正的Https内容,可以按照以下方法设置。

In Charles go to the Help menu and choose "SSL Proxying > Install Charles Root Certificate". Keychain Access will open. Find the "Charles Proxy..." entry, and double-click to get info on it. Expand the "Trust" section, and beside "When using this certificate" change it from "Use System Defaults" to "Always Trust". Then close the certificate info window, and you will be prompted for your Administrator password to update the system trust settings.You may need to quit and reopen Safari to see the change.iOS devicesSet your iOS device to use Charles as its HTTP proxy in the Settings app > Wifi settings.Open Safari and browse to https://chls.pro/ssl. Safari will prompt you to install the SSL certificate.If you are on iOS 10.3 or later, open the Settings.app and navigate to General > About > Certificate Trust Settings, and find the Charles Proxy certificate, and switch it on to enable full trust for it (More information about this change in iOS 10).Now you should be able to access SSL websites with Charles using SSL Proxying.Charles supports App Transport Security (ATS) as of the 3.11.4 release.

翻译过来

  1. 在Mac系统中的Charles -> Help -> SSL-Proxying -> Install Charles Root Certificate
  2. 搜索Charles Proxy
  3. 双击打开,打开Trust下拉选项
  4. 下拉选择Always Trust
  5. 然后输入你的Mac密码即可
  6. IOS系统中设置你连接WIFI的Http代理设置为Charles所在的机子IP和端口
  7. 用Safari浏览器打开https://chls.pro/ssl地扯,安装SSL证书
  8. 注意:如果是10.3或之后的系统,在设置 -> 能用 -> 关于手机 -> 证书信任设置 -> Charles Proxy certificate 启用即可
原创粉丝点击