I want to connect server with ssl in android, I used from JKS, but I can not use JKS in android, I must change jks to bks, how can create bks file, I used from below order for conver jks to bks file : “keytool -importkeystore -srckeystore mytruststore.jks -destkeystore mytruststore.bks -srcstoretype JKS -deststoretype BKS -srcstorepass changeit -deststorepass changeit -provider org.bouncycastle.jce.provider.BouncyCastleProvider”
But I could not, can I use open ssl software? How can resolve my problem? Best Regards
The easier is using program "KeyStore Explorer" -> http://keystore-explorer.org/downloads.html
From Tools - Change KeyStore Type - BKS
Regards
The correct command should looks like :
keytool -importkeystore -srckeystore testkeys -srcstoretype JKS -srcstorepass passphrase -destkeystore testkeys.bks -deststoretype BKS -deststorepass password -provider org.bouncycastle.jce.provider.BouncyCastleProvider -providerpath C:\Personal\Work\lib\bouncycastle\bcprov-jdk15on-152.jar
You need to supply the provider path so that it can find it when doing conversion.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With