I am using Spring Cloud, and RestTemplate
to connect to micro services using SSL.
When I do:
restTemplate.exchange("https://myservice/properties", HttpMethod.GET,null, String.class)
it is using RibbonClientHttpRequestFactory
.
I got:
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated at
sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:421) ~[na:1.7.0_72]