CA证书导入系统目录


针对安装证书后无法抓包的情况,将证书添加到系统路径,使其成为系统信任凭证可解决:
设备要求userdebug获取超级权限:
adb disable-verity
adb reboot
adb root
adb remount

pc端需要配置openssl
进入openssl的安装目录,执行start.bat
输入命令 openssl x509 -subject_hash_old -in 证书文件路径
将证书更名为 哈希值.0
将更名后的证书导入系统路径:
adb push 证书路径 /system/etc/security/cacerts/
进入系统设置查看:adb shell am start -a android.settings.SECURITY_SETTINGS