Last active
June 18, 2025 15:46
-
-
Save CypherpunkSamurai/ebe042053d2a5ce1e6f0d5cab37c8416 to your computer and use it in GitHub Desktop.
Mitmproxy / Burp Suite Certificate Copy to Android Emulators (LDPlayer, Nox Emulator, BlueStacks)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import as CA Cert (DER) | |
openssl x509 -in mitmproxy-ca-cert.pem -outform DER -out mitmproxy-ca-cert.der | |
# import as private key (DER) | |
openssl rsa -in mitmproxy-private-key.pem -outform DER -out mitmproxy-private-key.der |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get android cert name | |
openssl x509 -inform PEM -subject_hash_old -in mitmproxy-ca-cert.cer | head -1 | |
# c8750f0d | |
# certs in android are named c8750f0d.0 with a .0 extension | |
cp mitmproxy-ca-cert.cer c8750f0d.0 | |
# Copy Cert | |
adb push c8750f0d.0 /system/etc/security/cacerts/ | |
# Set cert permissions | |
adb shell chmod 644 /system/etc/security/cacerts/c8750f0d.0 | |
# Or use root to copy user certs to system | |
# if on ld player / emulator and you recieve read only filesystem error, set system to read only once. reboot. set to writable, reboot. now try. | |
adb root | |
adb remount | |
adb shell cp /data/misc/user/0/cacerts-added/*.0 /system/etc/security/cacerts/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN RSA PRIVATE KEY----- | |
MIIEpAIBAAKCAQEA6iyUhFtLN3kqxa6SMsMjvR0tNO5gXo9MdO2d8w+hSMKRi2j2 | |
OwF1pClTmF+1BFRhQhSGou7rDPI8mILSiIrHr47lFVComjoU2zqjijQfoIBRsNgJ | |
nrX5qcq+6PVHKqw1QbZb6OXyCw/L1XGwIVuvpfabSr8+dp7qns7NjxIuTEDVzh/U | |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CKddEQIhTnQ6 | |
ACwCh6ozz2jDTF0xe4yt42ECgYASM/iSW30+WAYILWgwzVpggktcZIhFgLN402Ve | |
CpEwYAnvPJTQD4TVXH2Vp4z8FYEnsA1wz5s7Hm0WDPx9IIIEEtfvRjIo8+xqu0tt | |
S6o9CKrgSiuctLV8TxdamOCmpfNVM2f5GBtfOh4th90TAg7FOCauruN5u2buyCs5 | |
aL7vWQKBgQDlux6/3gGaSUuFwpfieUGJpzYolj9xphR3zmnAoSWhcwG/Q9n7SM9g | |
a6hUaQ8wd3xInxSaSbXs9gUbt7oXZEpm+eZ3D4whbDK6RNkMclGI2iuB1lG5Zu6M | |
709qw11kgfSwKNG7JEq4uIGA9mw01YnJ+UO64d8JM2bbakXlsQtdfA== | |
-----END RSA PRIVATE KEY----- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment