function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kalyan Erraguntla 5Kalyan Erraguntla 5 

REST API with third party certificate

I have to callout webservice in the external server. I got the certificate from them along with password but no username. 

Its SOAP API implementataion, but we have issues with wsdl file so i am unable to generate the apex classes out of wsdl file. As an alternate approach, we have picked up the restful webservices implementation to send the SOAP requests using HTTP classes.

We have converted the .pfx format to .jks format and imported to salesforce using the keystore password.

The question now is, how to set the certificate along with password with HTTP callout? I have read that setCertificateName can be used. But i have doubt on whether this works or not? If it works, how to attach the password along with certificate name to HTTP callout?
Tintu_BabuTintu_Babu
Hi Kalyan,

Hope this salesforce documentation helps to resolve your issue.

https://developer.salesforce.com/page/Making_Authenticated_Web_Service_Callouts_Using_Two-Way_SSL
Rishabh Agrawal 18Rishabh Agrawal 18
Hi Kalyan, 

I have the same requirement so wanted to know the final solution also how to convert .pfs to .jks format, was that using OpenSSL?