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
Vishnu_SFDCVishnu_SFDC 

System.CalloutException

I get this error when using RESt API and future call to post data to external system "System.CalloutException: IO Exception: java.security.cert.CertificateException: No subject alternative names present".

But when i use java script to post data to same URL i works fine.

Can any body heplp me with tis.

Thanks,
Vishnu
Sonam_SFDCSonam_SFDC
Hi Vishnu,

This seems to be more of a java security error: I found the following threads which discuss the same issue and a couple of workarounds:

http://salesforce.stackexchange.com/questions/21155/ssl-exception-when-calling-out-system-calloutexception-io-exception-java-sec
http://salesforce.stackexchange.com/questions/23134/way-to-get-around-ssl-certificate-errors-when-calling-an-external-web-service