title: Import client self signed cert into java keystore
body: <p>See also: <a href="https://stackoverflow.com/questions/2685512/java-keystore-problem-when-generated-from-openssl-cert">Can a Java key store import a key pair generated by OpenSSL?</a></p>
  
  <p>I am provided with the following files to authenticate against a thrift endpoint:</p>
  
  <ul>
  <li>cacert.pem </li>
  <li>local.crt </li>
  <li>local.key</li>
  </ul>
  
  <p>I am having the hardest time trying to create a keystore that has the client cert in it.  The endpoint application has its own CA to authenticate they client certs.  I honestly am not sure what needs to be included in the keystore (assuming the client cert, and the endpoint public cert), but for the life of me can not get it working.</p>
  
  <p>Does anyone know how to import a client cert into a keystore?  Or, what I need to do in order to get this working?  Thanks.</p>