While making a callout to the private link API (Application Programming Interface), users/customers may encounter the following exceptions:
System.CalloutException: PKIX (Public Key Infrastructure X.509) path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
OR
System.HttpRequest retrying request in response to handshake failure:
PKIX (Public Key Infrastructure X.509) path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
This error occurs when salesforce using the “HTTPS” protocol to communicate with AWS Private Connection but our domain name/CDN doesn’t have any Salesforce Trusted CA(Certificate Authorities) certificate installed on the server. By the definition of “HTTPS” protocol, To use HTTPS with your domain name, you need an SSL (Secure Sockets Layer) or TLS (Transport Layer Security) certificate.
We need to make sure that the certificate installed on the server is signed by the Salesorce trusted CA(Certificate Authorities). To check the salesforce trusted CA(Certificate Authorities) list you can hit the below URL after logging into your salesforce.
https://<Your MyDomain>/cacerts.jsp
NOTE: Your web host (Web Hosting Provider) may offer HTTPS security but Salesforce only trusts the above listed CA(Certificate Authorities).
openssl s_client -showcerts -connect <Link URL>:443
See Also:
How to Download Whole Certificate Chain From A Remote Host and Import to a Trust Store
001996526

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.