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
翻译过来
- 在Mac系统中的
Charles -> Help -> SSL-Proxying -> Install Charles Root Certificate - 搜索
Charles Proxy - 双击打开,打开
Trust下拉选项 - 下拉选择
Always Trust - 然后输入你的Mac密码即可
- IOS系统中设置你连接WIFI的Http代理设置为Charles所在的机子IP和端口
- 用Safari浏览器打开
https://chls.pro/ssl地扯,安装SSL证书 - 注意:如果是10.3或之后的系统,在设置 -> 能用 -> 关于手机 -> 证书信任设置 -> Charles Proxy certificate 启用即可
如果还是不行就可以试试SniffMaster,SniffMaster同样支持HTTPS暴力抓包,可以插上设备即可解密HTTPS流量,无需设置代理、越狱或root,并支持指定APP过滤,为抓包提供更多便利。
点击查看更多内容
为 TA 点赞
评论
共同学习,写下你的评论
评论加载中...
作者其他优质文章
正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦