解决Charles不能抓到https的问题

1.手机连接Charles,然后在浏览器(用uc浏览器)地址栏输入chls.pro/ssl下载,也可以直接点击以下链接下载。

https://pan.baidu.com/s/1PCz576rly0Lv2RjSR56PNw
2.安装open ssl(https://www.openssl.org/source/),然后配置环境变量,把openssl安装路径bin的路径(例如 C:\OpenSSL-Win64\bin)加入到操作系统的系统环境变量Path中

 

 

 


3.将下载的证书(charles-proxy-ssl-proxying-certificate.pem)导入电脑中

4.在cmd中输入

openssl x509 -subject_hash_old -in <Certificate_File>
<Certificate_File>为刚才下载的证书(charles-proxy-ssl-proxying-certificate.pem)


然后将<Certificate_File>这个文件改为 生成的数字加.0,例如

 

 

 

5.然后在用前端根证书导入的方法导入证书
adb root
adb remount      
adb push 0505096d.0 /etc/security/cacerts/             
adb shell chmod 644 /etc/security/cacerts/0505096d.0

如果remount或push失败,需要执行以下命令
adb disable-verity
adb reboot

转载于:https://www.cnblogs.com/duobazi/p/11588993.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值