Last active
March 7, 2024 20:41
-
-
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.
This file contains 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
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