将一个提供商的 JCEKS 密钥转换为另一个提供商的另一个存储
我有一个使用 SUN PROVIDER 创建的密钥库 JCEKS。
我必须在没有 SUN PROVIDER 的 IBM JDK 上使用相同的存储。如何使用 keytool 转换密钥库或导出密钥,以便让 IBM JDK 访问密钥库中的密钥?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
IBM的JDK无法加载使用SUN的JDK创建的密钥库。因此,在 IBM 机器上,如果您想使用密钥库,则应该仅使用 IBM 的 JDK 创建它。
要使用 IBM 的 JDK 创建新密钥库,请参阅 这个。
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.
您可以将 IBMJCE 与使用 SunJCE 创建的 JCEKS 密钥库结合使用。使用 keytool 可能会为密钥库提供密码,并为 securekey 本身提供单独的密码。当使用 keyman IBM Key Manager 或您自己的类与 IBMJCE 来从 JCEKS 获取安全密钥时,您可能会收到 com.sun.crypto.provider.SealedObjectForKeyProtector 错误。解决方案是将密钥库和 securekey 的密码设置为相同的值。
You can use the IBMJCE with a JCEKS keystore created using SunJCE. It might be possible that using keytool a password was provided for both the keystore as well as a separate password for the securekey itself. When using keyman IBM Key Manager or your own classes with the IBMJCE to get the secure key from the JCEKS you may get com.sun.crypto.provider.SealedObjectForKeyProtector error. The solution is to set the password for the keystore and the securekey to the same value.
JCEKS
是随JCE
引入的SUN 格式类型。这并不意味着它仅受 SUN/Oracles 的 JDK 支持。
您也应该能够在 IBM JDK 中使用它(当然使用 IBM 提供程序)。查看 IBM 安全
JCEKS
is a SUN format type introduced withJCE
.That does not mean that it is supported only by SUNs/Oracles' JDK.
You should be able to use it in an IBM JDK as well (using the IBM providers of course). Check out IBM Security