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
BinayakBinayak 

Certificate issue:


From SalesForce ,we have to make some REST callouts to a different server(say SERVER A).But while making the callouts,we are facing an exception of

System.CalloutException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.

Now,Server A is certified by a CA (self-signed certificate) which does not fall under the list of CAs supported be Salesforce.We cannot ask the server owners to upgrade their CA.Is there any possible work around for overcoming this sort of exception?

Jia HuJia Hu
You can try Http call instead of Https call, but you have to do the encryption & decryption in your code to protect the data if you are considering the security issues.