You may need to configure your browser or application to trust the Charles Root Certificate. See SSL

You may need to configure your browser or application to trust the Charles Root Certificate. See SSL Proxying in the Help menu.

如果你遇到charles抓包提示:You may need to configure your browser or application to trust the Charles Root Certificate. See SSL Proxying in the Help menu.信息,请往下看:

百度了很多攻略,解决方案都是这样(但是并没有解决我的问题):

iphone:解决如下:

iPhone系统更新到iOS 10.3后,https的请求都会失败,提示错误信息为Failure SSLHandshake: Received fatal alert: unknown_ca 和You may need to configure your browser or application to trust the Charles Root Certificate. 然而之前任何问题都没有,并且相关设置都正确:Mac上安装了Charles的根证书,并且设置了始终信任,然后手机上也登录了http://chls.pro/ssl安装了描述文件,一切都按正常程序走的,但是错误始终无法解决.

相关环境:

Charles 4.2

iPhone 7P iOS 11.0.2

原因
设置->通用->描述文件->charles proxy custom root certificate

虽然charles的根证书已经在安装列表中显示,但它是被关闭的。在iOS 10.3之前,当你将安装一个自定义证书,iOS会默认信任,不需要进一步的设置。而iOS 10.3之后,安装新的自定义证书默认是不受信任的。如果要信任已安装的自定义证书,需要手动打开开关以信任证书。

解决
设置->通用->关于本机->证书信任设置-> 找到charles proxy custom root certificate然后信任该证书即可.

但是我们大多数已经这么操作了,仍然不能解决问题

此时需要这么操作:

在不能加载出的域名下右键,点击disaable ssl proxying

You may need to configure your browser or application to trust the Charles Root Certificate. See SSL