Topic by Sasi Kiran Allada
Content
We are trying to achieve the 2-way ssl communication for our client requirement. The requirement is to establish 2-way SSL between service cloud and client’s middleware. Service cloud needs to invoke REST API calls via this SSL connection.
Technical Details:
1. Client provided the public certificate of their middleware server and we shared the Service cloud certificate(verisign) to them as well.
2. Uploaded the middleware public certificate and all the intermediate and root cert in one certificate (.pem) file into the intermediate certificate directory of service cloud via Agent Desktop File Manager. Also uploaded the certificate for the Service cloud server.
3. We are using cURL request in a Customer Portal Controller file to consume the web-service (see below for cURL code snippet)
The error we are getting with this code is as below:
SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
I believe that there is something issue with the reading the certificate file or did we miss to add any CURL Options ? Please advise. It would be grateful if anyone can share some working code snippet or any steps that I’m missing in this 2-way SSL implementation.
Thanks,
Sasi