ios设备连接Charles抓包的时候,Charles显示unknown, 错误信息:No request was made. Possibly the SSL certificate was rejected.的解决办法如下:
前提:手机设置代理没问题,证书也安装了
安装证书的方法:
charls->help->SSL Proxying->Install charles root certificate on a mobile device or remote brower
Configure your device to use Charles as its HTTP proxy on ***********:8888, then browse to chls.pro/ssl to download and install the certificate.
解决办法:
对于iOS10.3以上的系统,还需要额外设置一项:
设置-》通用-》关于本机-》证书信任设置-》开启对根证书的完全信任的开关
charles官网的关于ssl证书的详细说明参考下面的链接:
https://www.charlesproxy.com/documentation/using-charles/ssl-certificates/