相互SSL异常发送警报:java.net.SocketException:管道损坏(写入失败)

时间:2018-05-19 09:09:59

标签: java ssl https ssl-certificate mutual-authentication

我有连接到服务器的客户端应用程序,并且身份验证是相互的ssl。 我正在尝试设置相互ssl,但它失败了以下异常。 我正在使用resttemplate进行休息。

*** CertificateVerify
Signature Algorithm SHA512withRSA
[write] MD5 and SHA1 hashes: len = 264
http-nio-8080-exec-3, WRITE: TLSv1.2 Handshake, length = 264
[Raw write]: length = 269
http-nio-8080-exec-3, WRITE: TLSv1.2 Change Cipher Spec, length = 1
http-nio-8080-exec-3, handling exception: java.net.SocketException: Broken pipe (Write failed)
%% Invalidated: [Session-1, TLS_RSA_WITH_AES_256_CBC_SHA256]
http-nio-8080-exec-3, SEND TLSv1.2 ALERT: fatal, description = unexpected_message
http-nio-8080-exec-3, WRITE: TLSv1.2 Alert, length = 2
http-nio-8080-exec-3, Exception sending alert: java.net.SocketException: Broken pipe (Write failed)
http-nio-8080-exec-3, called closeSocket()

相互sll客户端的流程然后是serverhello然后是certificateverify然后客户端证书已经由服务器发送了CA,之后该密钥交换也是成功的,但最后一步证书验证失败。 我不确定这里有什么问题,有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

经过大量的时间投入后,我发现错误的客户端别名已经过去了。

相关问题