将一个提供商的 JCEKS 密钥转换为另一个提供商的另一个存储

发布于 2025-01-03 09:26:07 字数 134 浏览 1 评论 0原文

我有一个使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

烟花肆意 2025-01-10 09:26:07

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.

廻憶裏菂餘溫 2025-01-10 09:26:07

您可以将 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.

南笙 2025-01-10 09:26:07

JCEKS 是随JCE 引入的SUN 格式类型。

这并不意味着它仅受 SUN/Oracles 的 JDK 支持。

您也应该能够在 IBM JDK 中使用它(当然使用 IBM 提供程序)。查看 IBM 安全

JCEKS is a SUN format type introduced with JCE.

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文