Skip to content

Instantly share code, notes, and snippets.

@krokofant
Created November 21, 2017 21:53
Show Gist options
  • Save krokofant/244a5f9bae0090af5fe22d82119be2c8 to your computer and use it in GitHub Desktop.
Save krokofant/244a5f9bae0090af5fe22d82119be2c8 to your computer and use it in GitHub Desktop.
Certificate installation as system with the use of Magisk
hash=$(openssl x509 -inform PEM -subject_hash_old -in charles-ssl-proxying-certificate.pem | head -1)
mv charles-ssl-proxying-certificate.pem "$hash.0"
echo "Download magisk"
wget https://github.com/topjohnwu/magisk-module-template/archive/1400.zip

echo "Put $hash.0 into /system/etc/security/cacerts/"
echo "chmod 644 the file"
echo "zip into module and install"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment