Java – Convert a key of JCEKS of a provider into another store for another provider

javakeytool

I have a keystore JCEKS create with the SUN PROVIDER.

I have to use the same store on a IBM JDK that doesn't have the SUN PROVIDER. How can i convert the keystore or export the key using keytool in order to let the IBM JDK to access the key in the keystore?

Best Answer

IBM's JDK cannot load the keystore created using SUN's JDK. So on an IBM machine, if you want to use a keystore, it should be created using IBM's JDK only.

For creating new keystore using IBM's JDK refer this.