Table of contents
2. Configure environment variables
4. Install the certificate to the Android emulator (Thunderbolt)
1. Use the adb command of the emulator
3. Send to the simulator to install the certificate (fiddler and charles certificate)
4. The simulator checks that the installation is complete
1. Installation tools
1. Install open-ssl
Download address: Win32/Win64 OpenSSL Installer for Windows - Shining Light Productions
2. Configure environment variables
3. Verify the installation
Two, Fiddler
1. Export the certificate
As shown in the figure below: copy to a demo folder
2. Convert cer format to PEM
#将.cer格式的证书转换为.pem格式的证书——
x509 -in D:\new.cer -inform DER -out D:\new.pem -outform PEM
Operation: Execute the cmd command
openssl x509 -in C:\Users\cheng\Desktop\demo\FiddlerRoot.cer -inform DER -out C:\Users\cheng\Desktop\demo\FiddlerRoot.pem -outform PEM
Generate the following figure:
3. View the hash value of PEM
openssl x509 -subject_hash_old -in FiddlerRoot.pem
carriage return
only need to:
269953fb
Change the file "FiddlerRoot.pem" to "269953fb.0"
3. Charles
1. Export the certificate
help-> SSL Proxying-> Save charles Root Certificate
2. View the hash value of PEM
openssl x509 -subject_hash_old -in charles.pem
carriage return:
Change the file "charles.pem" to "e3ab5537.0"
4. Install the certificate to the Android emulator (Thunderbolt)
1. Use the adb command of the emulator
Enter the installation directory of the Thunderbolt Simulator, enter cmd, and press Enter
2. Connect to the simulator
#输入命令
adb remount
3. Send to the simulator to install the certificate (fiddler and charles certificate)
#输入命令
adb push C:\Users\cheng\Desktop\demo\269953fb.0 /system/etc/security/cacerts
adb push C:\Users\cheng\Desktop\demo\e3ab5537.0 /system/etc/security/cacerts
4. The simulator checks that the installation is complete
Settings -> Security -> Trusted Certificates -> System