为了账号安全,请及时绑定邮箱和手机立即绑定

Charles抓包工具在iOS中解决HTTPS乱码问题完整指南

标签:
iOS

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

翻译过来

  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 启用即可

如果还是不行就可以试试SniffMaster,SniffMaster同样支持HTTPS暴力抓包,可以插上设备即可解密HTTPS流量,无需设置代理、越狱或root,并支持指定APP过滤,为抓包提供更多便利。

点击查看更多内容
TA 点赞

若觉得本文不错,就分享一下吧!

评论

作者其他优质文章

正在加载中
  • 推荐
  • 评论
  • 收藏
  • 共同学习,写下你的评论
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦
今天注册有机会得

100积分直接送

付费专栏免费学

大额优惠券免费领

立即参与 放弃机会
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

举报

0/150
提交
取消