相互SSL使用soapUI但不使用独立Java客户端

时间:2012-09-08 01:14:54

标签: java ssl sslhandshakeexception mutual-authentication

我正在尝试从Java客户端获得相互SSL工作。我的soapUI配置适用于我在WS-security配置中指定了密钥库和信任库的地方。

当我对具有以下系统参数的Java客户端执行相同操作时

System.setProperty("javax.net.ssl.keyStore", "D:\\certs\\client_keystore.jks");
System.setProperty("javax.net.ssl.keyStorePassword", "changeit");
System.setProperty("javax.net.debug", "all");
System.setProperty("javax.net.ssl.trustStore", "D:\\certs\\truststore.jks");
System.setProperty("javax.net.ssl.trustStorePassword", "trustpass");

我收到此错误

main, received EOFException: error
main, handling exception: javax.net.ssl.SSLHandshakeException: Remote host closed
  connection during handshake
main, SEND TLSv1 ALERT: fatal, description = handshake_failure
Padded plaintext before ENCRYPTION: len = 18

我已启用此功能:System.setProperty("javax.net.debug", "all");

从调试日志中我看到:

*** Certificate chain
***

如何调试此问题?

0 个答案:

没有答案