在服务器上我有一个证书,我用它连接到其他web服务。 证书已在服务器上正确安装,因为当我使用curl发出请求时,一切正常。问题是当我在Spring中通过我的webservice使用rest请求时。 我有例外:
handling exception: javax.net.ssl.SSLHandshakeException:
我正在尝试更改tls协议,但它没有帮助。
可能导致什么问题? 有一个调试器代码:
https-jsse-nio-8080-exec-4, WRITE: TLSv1 Handshake, length = 120
https-jsse-nio-8080-exec-4, received EOFException: error
https-jsse-nio-8080-exec-4, handling exception: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
https-jsse-nio-8080-exec-4, SEND TLSv1.2 ALERT: fatal, description = handshake_failure
https-jsse-nio-8080-exec-4, WRITE: TLSv1.2 Alert, length = 2
https-jsse-nio-8080-exec-4, called closeSocket()
https-jsse-nio-8080-exec-4, called close()
https-jsse-nio-8080-exec-4, called closeInternal(true)