严重:无效的密钥库格式 java.io.IOException:无效的密钥库格式
我正在尝试连接在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来是ftp传输方式的问题。我现在用二进制模式做到了,并且工作正常。
谢谢,
布林纳尔
Seems like the problem with the mode of ftp transfer. I did it with Binary mode now and its working fine.
Thanks,
Brinal