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