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
Mallesh GMallesh G 

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

Hi Threre,
Since a couple of days when we try to access Salsforce REST API we are getting Certificate error. We haven't modified our code since a couple of months (Which is working fine for a year). Please let us know how to fix this issue.


URL:https://login.salesforce.com/services/oauth2/token?grant_type=authorization_code&code=aPrxaSyVmC8fBbeI9GbAAcSRR7e5bNAk01DJmUaoLCldLoK5ZfpzEKix4s4MgZFrO11bShjmtlpQ==&client_id=3MVG9Y6d_Btp4x2234445p6KmwmXjlfbUJU1mtWkvCxCFMlwc43el0tkLx.EVHJAbJOgrETmH8vpuCFOefzPPvvSR5DT&client_secret=55501569453402846563045&redirect_uri=https://localhost/user/connector/generic/redirectoauth,,
2015-09-30 00:24:34.295+1000,ERROR,,<<<localhost>>>,service,PrintManagement,sun.reflect.NativeMethodAccessorImpl,invoke0,,,,"0073-032002-SWPF_SVC: Error while sending Salesforce request.(Code:NET_025,Detail:)",NET_025: Error while sending XML request over HTTP; sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; unable to find valid certification path to requested target,"jp.co.fujixerox.swpf.services.connector.salesforce.net.BacsNetworkException: NET_025: Error while sending XML request over HTTP