HTTPS requests using org.springframework.web.client.RestTemplate
RestTemplate class is useful to make synchronous client-side HTTP access. It also allows you to make HTTPS calls with same interface. When you use HTTPS urls, the framework switch to a different path to take care of the SSL handshake behind the scene so that as a user you don't have to explicitly provide a truststore and keystore to support the protocol. Here are some helpful info to understand the SSL flow better in this case. CA Cert Validation when using org.springframework.web.client.RestTemplate This example uses org.springframework.web.client.RestTemplate to make http requests. This make use of the SSLSocketFactoryImp, and SSLContextImpl$DefaultSSLContext classes, through which get access to the default cacert store file (loaded through X509TrustManagerImpl). Code references: http://www.docjar.com/html/api/sun/security/ssl/SSLContextImpl.java.html - (DefaultSSLContext-> getDefaultTrustManager) http://www.docjar.com/html/api/sun/security/ssl/TrustManagerFactoryI