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
Volker_factory42Volker_factory42 

Certificate Exception when connecting to salesforce

Hi,

 

we have a webservice which connects to salesforce.com. Sometimes, we get an exception of mismatching name in certificate.

 

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Thread.java:636)
Caused by: com.sforce.ws.ConnectionException: Failed to send request to
https://eu0-api.salesforce.com/services/Soap/u/21.0/

 

 

Caused by: javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException: No name matching
eu0-api.salesforce.com found

 

Does anyone have an idea?

90210high90210high

Having the same issue. Anybody found a solution to this?

 

Thank you!

Santhosh KumarSanthosh Kumar

This may be because in sandboxes Salesforce uses self-signed certificates. These certificates cannot be validated using your local trusted certificates. So you either have to disable the certificate check or add the salesforce certificates to your trusted cert pool.