Android capture certificate problem solving (burpsuite)
The storage location of the Android system certificate is /system/etc/security/cacerts, the certificate file must be in PEM format, and the file name must conform to the system certificate specification.
1. Export the certificate to the desktop
2. Convert the certificate format: convert DER to PEM
openssl x509 -inform DER -in burp.crt -out burp.pem -outform PEM
openssl x509 -subject_hash_old -in burp.pem
===>9a5ba575
openssl x509 -inform PEM -in burp.pem -out 9a5ba575.0
3. Certificate import: import the pem file into the Android emulator and restart
adb root
adb remount
adb push 9a5ba575.0/system/etc/security/cacerts/9a5ba575.0
adb shell
cd /system/etc/security/cacerts/
ls -alh 9a5ba575.0
chmod 644 9a5ba575.0
reboot