プライベートリンク API へのコールアウト時に、場合によっては次のエラーが発生することがあります。「System.CalloutException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target」(PKIX パスの構築に失敗しました: sun.security.provider.certpath.SunCertPathBuilderException: 要求されたターゲットへの有効な証明書パスが見つかりません)
このエラーは、AWS プライベート接続との通信に「HTTPS」プロトコルを使用しているにもかかわらず、ドメイン名/CDN のサーバーに Salesforce の信頼された CA 証明書がインストールされていないために発生します。「HTTPS」プロトコルの仕様上、ドメイン名で HTTPS を使用するには SSL または TLS 証明書が必要です。
サーバーにインストールされている証明書が Salesforce の信頼された CA によって署名されていることを確認する必要があります。Salesforce の信頼された CA の一覧を確認するには、Salesforce にログインした後、次の URL にアクセスしてください。https://<Your MyDomain>/cacerts.jsp
注意: Web ホスト (Web ホスティングプロバイダ) は HTTPS セキュリティを提供している場合がありますが、Salesforce は上述の証明機関のみを信頼します。
1. サーバーに Salesforce の信頼された CA 証明書が含まれていることを確認します。証明書が存在しない場合は、信頼できる認証局から証明書を取得し、サーバーにインストールします。
証明書チェーンを設定している場合は、その証明書チェーンに Salesforce の信頼された CA 証明書が含まれていることを確認します。
証明書チェーンを確認するには、以下のコマンドを使用します。openssl s_client -showcerts -connect <リンク URL>:443
Java バージョンの更新:場合によっては、Java をより新しいバージョンに更新することによって、証明書の検証に関する問題を解決できることがあります。
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.