We are building integration between Salesfoce and other system.
The other system has SOAP API to expose data and they implemented authication using certificates.
We genarateed class from WSDL. In the generated class system created three propeties clientCertName_x,clientCert_x and clientCertPasswd_x.
Steps we followed for Integration.
- Created Self signed certificate in Salesforce Sandbox environment.
- Downloaded Self signed certifation with .csr extension.
Sent that to third party and imported that in there system.
We are sending certificate name in clientCertName_x = 'abccertificate';
Then system throws error:
common.apex.runtime.impl.ExecutionException: Web service callout failed: WebService returned a SOAP Fault: An error occurred when verifying security for the message. faultcode=a:InvalidSecurity faultactor="|0x40aaa292"
Whenever we send clientCert_x from csr field then system throws error
System.CalloutException: Web service callout failed: clientCertPasswd_x can not be null
I am not sure about the clientCertPasswd_x property. How can I set it?