title: Consuming Webservice and 2 way SSL
body: <p>Consuming Webservice over HTTPS</p>
  
  <p>We have a webservice that we are consuming from our end.</p>
  
  <p>Webservice can run both on HTTP and HTTPS protocol.
  With HTTP no issues, but how to access with HTTPS.</p>
  
  <p>Can anybody tell me the java code for the same. I need to do this at the application level.</p>
  
  <p>Keystores and truststores will be required but how to use in java code and and trust them.</p>
  
  <p>Any help will be appreciated.</p>