Custom Folder for User Certificates
Forgotten2411 opened this issue · 5 comments
Hi, i tried installing certificate using custom folder method but not working after few reboots. Need to add certs manually then it will shown as system certificate.
What do you mean not working after few reboots?
- (Optional) create a file named /data/adb/trustusercerts/no_user_cert and put certificates into /data/adb/trustusercerts/certificates - This step will make module using certificates from this folder instead of user certificates
I followed these step as above, but it won't installs as system certs.
May I know the naming of your certificates in /data/adb/trustusercerts/certificates?
Your filename is inccorrect. Please refer to this https://medium.com/hackers-secrets/adding-a-certificate-to-android-system-trust-store-ae8ca3519a85
openssl x509 -inform PEM -subject_hash_old -in <exported_cert_file>| head -1
mv <exported_cert_file> <old_hash>.0
The filename should be the hash of the certificate.
There is another easy way to do this, you can install certificate as user certificate, and you should find the renamed certificate in folder /data/misc/user/0/cacerts-added
, copy it to custom folder