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
Rakesh Sharma 78Rakesh Sharma 78 

how to download private key or how to make rest callout with https certificate from go daddy

Hi,

I am trying to call external rest API from salesforce apex code. But it is giving below error. 

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

This very common error when you try to connect to external servers. Now, problem is i have tried all possible solutions which are ging on salesforce site or on web. But now albe to resolve this issue. There are couple of links which given idea to solve it but that also doesnt work.

https://developer.salesforce.com/forums/?id=906F0000000B0PRIA0
https://salesforce.stackexchange.com/questions/68189/error-doing-callout-to-a-site-with-godaddy-certificate

Can someone point to right steps for this problem, or any exiating page where this communication issue is rexolved?

Thanks in advance.