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
pmsdxpmsdx 

Http Callout with HTTPS endpoint

Description: I am trying to use an HTTPS endpoint for a http callout using HTTPRequest inside APEX.
I am getting the following error.
IO Exception: sun.security.validator.

ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
 
What do I need to get one-way encryption from Salesforce to my backend server?
 
 
RocketRocket

Have u registered your endpoint in the remote site settings?

RocketRocket

There is something mentioned in the apex guide regarding one way certificate ,you have to make certain adjustmenets in your code ,try to check apex guide.