Generating a BKS keystore and storing app key

空扰寡人 提交于 2019-12-06 06:36:40

问题


I am supposed to create a BKS keystore and store a private Application key which is a 48 character long string in this Keystore. I also have a JCEKS keystore which has this key value already in it. If I try to convert into BKS type keystore using portecle tool, the Key entry is lost.

I am new to JCE. Can someone please guide me as to what needs to be done to import this Key in the Keystore?

Thanks.


回答1:


Try this command

keytool -importcert -v -trustcacerts -file "cacert.pem" -alias ca -keystore "mySrvTruststore.bks" -provider org.bouncycastle.jce.provider.BouncyCastleProvider -providerpath "bcprov-jdk16-145.jar" -storetype BKS -storepass testtest


来源:https://stackoverflow.com/questions/6515314/generating-a-bks-keystore-and-storing-app-key

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!