Skip to content

Instantly share code, notes, and snippets.

@kylemanna
Last active March 7, 2024 20:41
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylemanna/5672077 to your computer and use it in GitHub Desktop.
Save kylemanna/5672077 to your computer and use it in GitHub Desktop.
Generate hash file name for Root CAs on Android. Handy for things like mitmproxy.
CERT=$1
NAME=$(openssl x509 -in $HOME/.mitmproxy/mitmproxy-ca-cert.cer -subject_hash_old -noout)
cp ${CERT} ${OUT}/system/etc/security/cacerts/${NAME}.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment