Android抓包证书问题解决(fiddler)
一、本地设置fiddler证书为受信任的根证书发布机构发布的证书
1. 信任根证书
2.导出根证书到桌面,默认为.CRT(DER格式)证书文件
3.将证书导入浏览器受信任的根证书颁发机构中
二、证书格式转换:DER格式转PEM
openssl x509 -inform DER -in fiddler.crt -outform PEM -out fiddler.pem
openssl x509 -subject_hash_old -in fiddler.pem
--->>>269953fb
openssl x509 -inform PEM -in fiddler.pem -out 269953fb.0
三、证书导入
adb root
adb remount
adb push 269953fb.0 /system/etc/security/cacerts/269953fb.0
adb shell
cd /system/etc/security/cacerts
ls -alh 269953fb.0
chmod 644 269953fb.0
reboot