[英]Mutual SSL Exception sending alert: java.net.SocketException: Broken pipe (Write failed)
I have client app which connects to server and the authentication is mutual ssl. 我有连接到服务器的客户端应用程序,并且身份验证是相互SSL。 I am trying to setup mutual ssl but it is failing with below exception.
我正在尝试设置双向SSL,但由于以下异常而失败。 I am giving rest call using resttemplate.
我正在使用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()
the flow for mutual sll client hello then serverhello then certificateverify then client cert has CA sent by server after that key exchange is also successfuly but at last step certificateverify it fails. 相互sll的流程客户端问候,然后服务器问候,然后证书验证,然后在服务器密钥交换也成功之后,客户端证书已由服务器发送了CA,但是最后一步,证书验证失败。 I am not sure what is wrong here, could anyone plleaese help out?
我不确定这里出什么问题了,请问有人能帮忙吗?
经过大量的时间投入,我发现传递了错误的客户端别名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.