+ Start a Discussion
Armando jacoboArmando jacobo 

Ignore certificate error when calling an external web service


I am calling an external web service from Salesforce.
The error I'm getting is:
java.security.cert.CertificateException: No subject alternative names matching IP address x.x.x.x found

Is it possible to tell Salesforce that this is a trusted address and to Ignore the certificate error? Similar when indicating the same to a Web Browser.
We are testing with a development environment but the certificate is for the production domain. So we are working with a trusted specific address that is not covered by the certificate.

ShashankShashank (Salesforce Developers) 
Here's a similar question from the past: https://developer.salesforce.com/forums/ForumsMain?id=906F00000008zpOIAQ

For security reasons, you must have a signed server certificate.
Nicolas VuillamyNicolas Vuillamy
While this is not a production org, I don't see the issue of allowing unsecured connexions, if it's wanted by the developer !
Why not allowing some IgnoreSSLIssues function like in other languages ?