spring cloud ribbon client to connect to ssl

1.1k views Asked by At

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]

0

There are 0 answers