【发布时间】:2017-12-10 02:29:08
【问题描述】:
有没有办法通过ADB在Security -> Trusted Credential -> User tab下安装CA证书(.crt文件)?或任何其他“可编写脚本”的方式。
【问题讨论】:
-
问题解决了吗?
-
静默安装证书的唯一方法是通过设备策略管理器,只有应用程序 (.apks) 可以注册为 DPM,所以很遗憾,经过长时间的研究,我走到了死胡同。@MohamedELAYADI
-
我想出了一个办法; openssl x509 -inform PEM -subject_hash_old -in charles-proxy-ssl-proxying-certificate.pem | head -1>toto set /p totoVar=
%totoVar% echo %totoVar% openssl x509 -inform PEM -text -in charles-proxy-ssl-proxying-certificate.pem -out nul >> %totoVar% adb shell mount -o rw,remount,rw /system adb push %totoVar% /system/etc/security/cacerts/ adb shell mount -o ro,remount,ro /system adb reboot
标签: android certificate adb x509certificate