title: RestTemplate with pem certificate
body: <p>I have pem certificate with private key and server certificate.
  I can execute it using curl and all works ok.</p>
  
  <pre><code>curl -O -k --cert-type pem --cert mypem.pem url
  </code></pre>
  
  <p>But I want to use it with java, most preferably will be RestTemplate from spring.</p>