I am using Sun's keytool to create a Bouncy castle keystore and import a certificate into it. The keytool does produce a keystore in the Bouncy castle format.
I then attempt to import the Bouncy castle keystore into an Android program. I am able to get an instance of the "BKS" keystore but calling load on the keystore throws
"java.io.IOException: Wrong version of key store".
This is the code
KeyStore keyStore = KeyStore.getInstance("BKS");
InputStream is = new FileInputStream("/mnt/sdcard/ArcGIS/mystore.bks");
keyStore.load(is, "abcdef".toCharArray());
I tried various versions of the Bouncy castle JAR downloaded from http://www.bouncycastle.org/latest_releases.html
What am I doing wrong?
Thanks, Ranjit