How to install Certification authority (CA) certificates on Android.

- Download http://bouncycastle.org/download/bcprov-jdk16-141.jar and place it on $JAVA_HOME/jre/lib/ext/
- download cacerts.bks from android
- import certificates to cacerts.bks
- upload to android

cd /usr/lib/jvm/java-6-openjdk/jre/lib/ext/
wget 'http://bouncycastle.org/download/bcprov-jdk16-141.jar'

cd /tmp
adb pull /system/etc/security/cacerts.bks cacerts.bks

keytool -keystore cacerts.bks -storetype BKS -provider org.bouncycastle.jce.provider.BouncyCastleProvider -storepass changeit -importcert -trustcacerts -alias CACERT -file root.crt

adb shell mount -o remount,rw /system
adb push cacerts.bks /system/etc/security/
adb shell mount -o remount,ro /system

more details: http://wiki.cacert.org/FAQ/ImportRootCert#Way_1:_Android_SDK

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Subscribe without commenting