0

I want to consume HTTPS requests using resttemplate which is working fine with HTTP request.

I am getting below error

HTTP Status 500 – Internal Server Error
nested exception is javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake 

I have created resttemplate bean

<bean id="restTemplate" class="org.springframework.web.client.RestTemplate"/>

I don't want to disable SSL certificate validation. I want to validate it. Can anyone help me to write XML configuration for creating resttemplate bean with SSL validation.

0 Answers0