-
[Mobile] Android 7 이상 Fiddler 인증서 적용Study/Mobile 2021. 2. 18. 21:58
-----------------------------------------
1. Windows openssl 설치
sourceforge.net/projects/openssl/
2. Fiddler 인증서 Export
바탕화면에 FiddlerRoot.cer 파일을 FiddlerRoot.der으로 변경하여 openssl/bin/ 폴더로 이동
3. cmd에서 명령어 실행
openssl x509 -inform DER -in FiddlerRoot.der -out FiddlerRoot.pem openssl x509 -inform PEM -subject_hash_old -in FiddlerRoot.pem | head -1
결과로 나온 hash값으로 pem 인증서 이름 변경
move FiddlerRoot.pem <hash값>.0
4. 인증서를 안드로이드 System으로 이동
adb push <hash값>.0 /sdcard/ adb shell $ su # mount -o rw,remount,rw /system # mv <hash값>.0 /system/etc/security/cacerts/ # chmod 644 /system/etc/security/cacerts/<hash값>.0 # mount -o ro,remount,ro /system
5. 재부팅 하지 않고 Fiddler에서 캡처 확인