Skip to content

Instantly share code, notes, and snippets.

@CFM880
Last active September 4, 2025 02:49
Show Gist options
  • Save CFM880/226dd86ef1a4f2e731c1682586de7eec to your computer and use it in GitHub Desktop.
Save CFM880/226dd86ef1a4f2e731c1682586de7eec to your computer and use it in GitHub Desktop.
install charles root root CA

PC 上操作

  1. open charles
  2. Help-->SSL Proxying-->Install Charles Root Certificates
  3. trust this Certificates
  4. Help-->SSL Proxying-->Save Charles Root Certificates
  5. Proxying--> SSL Proxying Settings-->SSL Proxying-->add Host:* Part 443
  6. 取消代理pc

adb push path/to/charles-ssl-proxying-certificate.pem /scard/Download

Android 手机上操作

  1. 从存储设备安装安装证书
  2. CA 证书
  3. 选择push的证书
adb root
adb remount
adb reboot
adb shell 

ls /data/misc/user/0/cacerts-added/
600bd513.0

mv /data/misc/user/0/cacerts-added/600bd513.0 /system/etc/security/cacerts
chown root:root /system/etc/security/cacerts/600bd513.0

然后手机系统证书中滑到最后,查看是否有对应的证书,有一个叫xk72的证书,就证明安装成功了

@CFM880
Copy link
Author

CFM880 commented Sep 4, 2025

@CFM880
Copy link
Author

CFM880 commented Sep 4, 2025

如果是直接push进入的,需要修改权限为

chmod 644 *.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment