1

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'.

  • If the endpoint URL of the external system uses HTTPS, then a CA signed SSL certificate must be present on the other end and must match the domain name. – Boris Bachovski May 29 '14 at 5:40
2

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.

Making authenticated web service callouts from Salesforce

Making Authenticated Web Service Callouts Using Two-Way SSL

  • 1
    Thanks 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 – user8597 May 29 '14 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 – user8597 May 29 '14 at 9:10
  • Are you using IP address instead of dns name? – Boris Bachovski May 29 '14 at 21:46
  • I've updated the answer and provided link with some examples. – Boris Bachovski May 29 '14 at 21:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.