能不能详细说明一下,root 之后如何添加根证书。Android 直接在设置中添加需要连密钥一同添加,我并不想把密钥也放进去。于是我直接把证书放到系统的证书目录里(目录应该是没错,我看设置中列出的其他预装根证书都在这个目录里)。但这样操作之后,手机安装的软件还是不信任我的 CA ,并且系统也弹出不信任的 CA 的通知。
android 信任用户证书的问题,可以用下面这个工具解决,不需要 root:
apk-mimt:
apk-mitm automates the entire process. All you have to do is give it an APK file and apk-mitm will:
1. decode the APK file using Apktool
2. replace the app's Network Security Configuration to allow user-added certificates
3. modify the source code to disable various certificate pinning implementations
4. encode the patched APK file using Apktool
5. sign the patched APK file using uber-apk-signer