赞
踩
高版本的安卓不能直接安装证书了,比较麻烦。步骤如下。
https://blog.csdn.net/x2584179909/article/details/108319973
https://blog.csdn.net/zyhse/article/details/108186278
在ca证书的文件夹打开终端。
执行
D:\Files\下载>openssl x509 -inform der -in cacert.der -out burp.pem D:\Files\下载>openssl x509 -subject_hash_old -in burp.pem 9a5ba575 -----BEGIN CERTIFICATE----- MIIDpzCCAo+gAwIBAgIEM1SVdzANBgkqhkiG9w0BAQsFADCBijEUMBIGA1UEBhML UG9ydFN3aWdnZXIxFDASBgNVBAgTC1BvcnRTd2lnZ2VyMRQwEgYDVQQHEwtQb3J0 U3dpZ2dlcjEUMBIGA1UEChMLUG9ydFN3aWdnZXIxFzAVBgNVBAsTDlBvcnRTd2ln Z2VyIENBMRcwFQYDVQQDEw5Qb3J0U3dpZ2dlciBDQTAeFw0xNDAyMjgwNjUzMjZa Fw0zNDAyMjgwNjUzMjZaMIGKMRQwEgYDVQQGEwtQb3J0U3dpZ2dlcjEUMBIGA1UE CBMLUG9ydFN3aWdnZXIxFDASBgNVBAcTC1BvcnRTd2lnZ2VyMRQwEgYDVQQKEwtQ b3J0U3dpZ2dlcjEXMBUGA1UECxMOUG9ydFN3aWdnZXIgQ0ExFzAVBgNVBAMTDlBv cnRTd2lnZ2VyIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyZ+s 4bek+kB72L+oy7oqzGhRmHSexN1O+nC+qSrvdALl9f2ozVdQHNp6HNrLh/MuW4Qn lsfljM9t49QZKRI7NLTXkOOzbACxvA/9sQmOjCI03D/DzJ4t9USudSPo9k+fsDEm GrIxxPc1Mv80wcpg2CFEeXoAny4fuZvq+wnr/Z3GyBc8lqKxXdVOa1sn4Ln7fMWW S4ycUbgCUGMn052nro/ymxLtfRADB4n94tKD3AYGU4BwJjVuTSvPUkO0c4DFnTOh kn6OcwE4lHMCcT+5VWKOSG42fMMtyvh1H5Rzzt6rGErNv9nbMIhLTByuATSkGDJr CS9EGQecI25hKbIpHQIDAQABoxMwETAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3 DQEBCwUAA4IBAQClvR26P/qbRWJwRqQkzMZ91cRrO5E+EPtLNdmvureSkhCX5oCX r2dopNczNpjvilJKNb14POl/sTbvnC/nLRpwDBONYvU8Dg27j5tbjL1mx1EVfHi5 caP5EO3q8falIxJmuJgLDUcYinqa6juOu2CfR8m7knhW6LVcHYfOeWvcSifPFdeu Z0WCl7d9k7wyrzDEo9QaalCI7NFi5jZ6aVQg4p6IuSjzK2dq1rv0kQumfK5dpJ6k YTQ0+ixCApvmRSMmTsU7D3vWUOrK3XzImB/PJe+rPxwYTnF6SN983RPJnjCLOYUk vJukGizR0aHkoauFlVXFKe24gxKfBrrJ0iyR -----END CERTIFICATE-----
手动将新建的burp.pem
重命名为9a5ba575.0
,别忘了后面的.0
往下滑
好了,至此可以连接adb
D:\Files\下载>adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
D:\Files\下载>adb connect 127.0.0.1:16384
connected to 127.0.0.1:16384
D:\Files\下载>adb root
D:\Files\下载>adb push 9a5ba575.0 /system/etc/security/cacerts/
9a5ba575.0: 1 file pushed, 0 skipped. 0.0 MB/s (1348 bytes in 0.047s)
一定要将证书导入/system/etc/security/cacerts/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。