gpt4 book ai didi

Java keystore : missing decryptionKey and signingKey aliases

转载 作者:太空宇宙 更新时间:2023-11-03 14:35:35 25 4
gpt4 key购买 nike

关于这个我不明白的异常,我需要帮助...我什至没有在谷歌上找到任何相关内容。

*java.security.KeyStoreException]:[提供的 keystore 配置不正确,它必须包含“decryptionKey”别名和“signingKey”别名,位于 com .entrust.toolkit.x509.jsse.d.<

这些别名是什么?你知道他们失踪的原因吗?

这是抛出异常的代码行

CLIENT_KEYSTORE_PATH = full path of the "client certificate" pfx file.
CLIENT_KEYSTORE_PASS = password of the pfx file

KeyStore cks = KeyStore.getInstance("PKCS12");
cks.load(new FileInputStream(CLIENT_KEYSTORE_PATH), CLIENT_KEYSTORE_PASS.toCharArray());
SSLContext sslcontext = SSLContexts.custom().loadKeyMaterial(cks, CLIENT_KEYSTORE_PASS.toCharArray()).build();

谢谢你的帮助

最佳答案

检查 Java 二进制文件附带的 keytool 命令。

您可以通过在线谷歌搜索找到如何使用它。

不要错过指定 PKCS12 的 key 存储类型选项

Here there is a link to one place for example.

关于Java keystore : missing decryptionKey and signingKey aliases,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48231242/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com