title: Concatinating cert and key file so that it can be included in java cacert file
body: <p>We have been provided with certificate from our client for the CSR we have given to them.</p>
  
  <p>Basically I have been provided with abc.pem and abc.cert files. </p>
  
  <p>abc.key is the one which we have used to generate the CSR.</p>
  
  <p><code>openssl req -out abc.csr -new -newkey rsa:2048 -nodes -keyout abc.key</code></p>
  
  <p>with following curl I was able to make a call to client.</p>
  
  <p><code>C:\Sanjay\Work\17MM\Curl\curl-7.43.0-win32\bin&gt;curl --cert "abc.cert" --key abc.key  -X GET -H Accept:application/json -H Content-Type:applica
  tion/json  -v "https://client.com"</code></p>
  
  <p>My questions:
  We want to group the key file and cert file into one so that we can include it in cacert <code>C:\Program Files\Java\jdk1.7.0_51\jre\lib\security</code> so that we when we make a request via camel or apache http client it picks the certificate from cacert.</p>
  
  <p>Please suggest!</p>