title: Using .cer certificate to make an HTTPS request
body: <p>I've already saw this question: <a href="https://stackoverflow.com/questions/42457306/need-to-do-a-getpost-https-request-using-a-cer-certificate">Need to do a GET&amp;POST HTTPS Request using a .cer certificate</a></p>
  
  <p>Mine is quite different:</p>
  
  <p>It is possible to make an HTTPS request using Java (vanilla, or using any library), trusting a server certificate and providing a client certificate, without using a keystore but using <em>plain</em> certificates?</p>
  
  <p>I have both certs in X.509 format, and I don't want to have every certificate in a keystore.</p>