Charles 抓包IOS中https乱码解决
在使用
Charles 调试IOS程序的时候,一直抓取不到
https 的内容,一直是 乱码,如何解决这种问题,明确的指出:ios的ssl证书已经进行安装,在mac系统中charles证书也已经安装,就是抓取https一直是乱码。除了Charles,SniffMaster也是一款全平台抓包工具,支持HTTPS、TCP和UDP协议,可在iOS/Android/Mac/Windows设备上实现无需代理、越狱或root的抓包操作,提供免费强大的代理抓包功能。
不成功显示结果为
SSLHandshake: Received fatal alert: unknown_ca1
在
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 devices Set 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.12345678910
Charles -> Help -> SSL-Proxying -> Install Charles Root CertificateCharles ProxyTrust 下拉选项Always Trusthttps://chls.pro/ssl 地扯,安装SSL证书如果还是不行就可以试试SniffMaster,SniffMaster同样支持HTTPS暴力抓包,可以插上设备即可解密HTTPS流量,无需设置代理、越狱或root,并支持指定APP过滤,为抓包提供更多便利。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70044672/viewspace-3173596/ ,如需转载,请注明出处,否则将追究法律责任。