- Export the CA certificate: Proxy -> Options -> Import / Export CA certificate -> Export certificate in DER format
- Prepare the certificate in the correct format:
openssl x509 -in cacert.der -inform DER -outform PEM >> "$(openssl x509 -inform DER -in cacert.der -subject_hash | head -1).0"
openssl x509 -in cacert.der -inform DER -text -noout >> "$(openssl x509 -inform DER -in cacert.der -subject_hash | head -1).0"
- Copy the certificate into
/etc/security/cacerts
:
- On the machine shell:
adb push xxxxxxxx.0 /sdcard/
adb shell
- On adb shell:
su
mount -o rw,remount /system
mv /sdcard/xxxxxxxx.0 /etc/security/cacerts
chown root:root /etc/security/cacerts/xxxxxxxx.0
chmod 644 /etc/security/cacerts/xxxxxxxx.0
- Reboot the Android device