Skip to content

Instantly share code, notes, and snippets.

@BitTheByte
Created September 28, 2020 08:01
Show Gist options
  • Save BitTheByte/e40cc3100d8b07c162eee420caee5a45 to your computer and use it in GitHub Desktop.
Save BitTheByte/e40cc3100d8b07c162eee420caee5a45 to your computer and use it in GitHub Desktop.
Convert burp.pem to Android certificate
openssl x509 -inform der -in ca.der -out burp.pem
name=$(openssl x509 -inform PEM -subject_hash_old -in burp.pem | head -1)
cp burp.pem "$name.0"
rm burp.pem
echo "[~] Run using adb: adb push $name.0 /system/etc/security/cacerts/$name.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment