You need to sign in to do that
Don't have an account?
Kalyan 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?
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?
Hope this salesforce documentation helps to resolve your issue.
https://developer.salesforce.com/page/Making_Authenticated_Web_Service_Callouts_Using_Two-Way_SSL
I have the same requirement so wanted to know the final solution also how to convert .pfs to .jks format, was that using OpenSSL?