We are calling external system webservice from Salesforce. the webservice exposed are internet We have created stub from the WSDL. It is a SOAP based call. But while calling the service, We are getting error 'java.security.cert.CertificateException: No subject alternative names present'.
1 Answer
There are a few things that could be wrong here.
1) If you're using HTTPS for the Endpoint URL, the other system must have a CA signed SSL certificate
2) Make sure you've added the endpoint URL in the Remote Site Settings in salesforce
3) If you're using Salesforce CA signed certificate, make sure you specify the cert name in your class (example) and you upload the cert file on the other server.
EDIT: I've found some good examples for different types of integration using SSL. Hope this helps.
-
1Thanks for the quick reply. If i understand you correctly we need to follow the below steps 1) Create 'CA-Signed' Certificate in Salesforce. 2) Download Certificate Signing Request. 3) We need to send it across the downloaded certificate to the team working on external system webservices for signing the certificate. 4) Once the signed certificate is received,we need to upload signed certificate in our Salesforce. 5) request.setClientCertificateName('xxxxx') should be set in our code– user8597Commented May 29, 2014 at 8:52
-
It would be great if you can help us know the steps for signing the certificate which needs to done at the external system– user8597Commented May 29, 2014 at 9:10
-
-
I've updated the answer and provided link with some examples. Commented May 29, 2014 at 21:47