0

我有一个 JAXWS 客户端,我在其中配置了两个属性以进行相互身份验证:

System.setProperty("javax.net.ssl.keyStore","sample.jks");
System.setProperty("javax.net.ssl.keyStorePassword","xxxx");        
System.setProperty("javax.net.debug", "all");

从日志中,我最后看到以下错误:

main, READ: TLSv1 Alert, length = 2
main, RECV TLSv1 ALERT:  fatal, handshake_failure
%% Invalidated:  [Session-1, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA]
main, called closeSocket()
main, handling exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

我无法弄清楚这个错误的原因。

任何帮助将不胜感激。

4

0 回答 0