Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我应该创建一个 BKS 密钥库并在此密钥库中存储一个 48 个字符长的字符串的私有应用程序密钥。我还有一个 JCEKS 密钥库,其中已经有这个键值。如果我尝试使用 portecle 工具转换为 BKS 类型的密钥库,则密钥条目会丢失。
我是 JCE 的新手。有人可以指导我在密钥库中导入此密钥需要做什么吗?
谢谢。
试试这个命令
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