严重:无效的密钥库格式 java.io.IOException:无效的密钥库格式

发布于 2024-10-28 09:21:11 字数 1438 浏览 0 评论 0原文

我正在尝试连接在 Linux 环境中的 Tibco 中运行的 https 服务器。我使用jdk 1.6.0在linux环境中创建了密钥库。

现在我想要一个独立的 http(s) 客户端连接到服务器。我已将生成的密钥库(psaserver.keystore)和证书(psaserver.cer)下载到Windows本地系统。我本地系统的jdk版本也是1.6。

但是当我尝试连接时,我收到此错误:

Mar 31, 2011 7:14:03 PM com.sa.http.ssl.AuthSSLProtocolSocketFactory createSSLContext
SEVERE: Invalid keystore format
java.io.IOException: Invalid keystore format
    at com.sa.http.ssl.AuthSSLProtocolSocketFactory.createKeyStore(AuthSSLProtocolSocketFactory.java:137)
    at com.sa.http.ssl.AuthSSLProtocolSocketFactory.createSSLContext(AuthSSLProtocolSocketFactory.java:192)
    at com.sa.http.ssl.AuthSSLProtocolSocketFactory.getSSLContext(AuthSSLProtocolSocketFactory.java:256)
    at com.sa.http.ssl.AuthSSLProtocolSocketFactory.createSocket(AuthSSLProtocolSocketFactory.java:293)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    at com.sa.sim.GenericHTTPClient.run(GenericHTTPClient.java:76)
    at java.lang.Thread.run(Unknown Source)

我已经完成了有关同一问题的查询。通过创建密钥多次重试相同的操作,但没有成功。

I am trying to connect a https server running in Tibco in linux environment. I have created the keystore in linux environment using jdk 1.6.0.

Now I want a standalone http(s) client to connect to the server. I have downloaded the keystore generated (psaserver.keystore) and certificate (psaserver.cer) to the windows local system. My jdk version in the local system is also 1.6.

But when I try to connect I am getting this error:

Mar 31, 2011 7:14:03 PM com.sa.http.ssl.AuthSSLProtocolSocketFactory createSSLContext
SEVERE: Invalid keystore format
java.io.IOException: Invalid keystore format
    at com.sa.http.ssl.AuthSSLProtocolSocketFactory.createKeyStore(AuthSSLProtocolSocketFactory.java:137)
    at com.sa.http.ssl.AuthSSLProtocolSocketFactory.createSSLContext(AuthSSLProtocolSocketFactory.java:192)
    at com.sa.http.ssl.AuthSSLProtocolSocketFactory.getSSLContext(AuthSSLProtocolSocketFactory.java:256)
    at com.sa.http.ssl.AuthSSLProtocolSocketFactory.createSocket(AuthSSLProtocolSocketFactory.java:293)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    at com.sa.sim.GenericHTTPClient.run(GenericHTTPClient.java:76)
    at java.lang.Thread.run(Unknown Source)

I have gone through the queries regarding the same problem. Retried the same by creating the key so many times, but it didn't work.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

眼角的笑意。 2024-11-04 09:21:11

看来是ftp传输方式的问题。我现在用二进制模式做到了,并且工作正常。

谢谢,
布林纳尔

Seems like the problem with the mode of ftp transfer. I did it with Binary mode now and its working fine.

Thanks,
Brinal

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