title: Curl cacert to Java HttpClient equivalent
body: <p>I wonder if I am able to make a connection using curl like the following command,</p>
  
  <blockquote>
    <p>curl --cacert some.pem <a href="https://someurl.com/resource" rel="noreferrer">https://someurl.com/resource</a></p>
  </blockquote>
  
  <p>How do I convert this to httpclient code? I understands I need to convert the pem file and create a new keystore, etc. But all these openssl, keytool commands, keystore, truststore confuses me, I don't know which one to use and in which order.</p>