# Add the mitmproxy Certificate to the Android Emulator For mitmproxy to be able to intercept the traffic coming from the Android emulator is necessary that we add it’s certificate to the trusted store, and we will follow their docs instructions. Create a hash of the certificate to use as the filename: ``` FILENAME=$(openssl x509 -inform PEM -subject_hash_old -in ~/.mitmproxy/mitmproxy-ca-cert.cer | head -1).0 ``` Copy the certificate to a new file that uses the hash filename computed in the previous step: ``` cp ~/.mitmproxy/mitmproxy-ca-cert.cer $FILENAME ``` Push the certificate to the system trusted store of the emulator: ``` adb push $FILENAME /system/etc/security/cacerts ``` Give the certificate the correct permissions: ``` adb shell "chmod 664 /system/etc/security/cacerts/$FILENAME" ``` Reboot the emulator for changes to take effect: ``` adb reboot && adb wait-for-device ``` After the boot is completed you can move to the next step.