When attempting to connect to a web server/URL endpoint, you may encounter the following error: 'PKIX path validation failed: java.security.cert.CertPathValidatorException: subject/issuer name chaining check failed'. Find out why, and how to fix it.
The main reason for this error is that the endpoint is presenting a certificate chain that contains incorrect intermediaries during the SSL Handshake. The server is sending it's own certificate and signing chain, but one or more intermediate certificates are incorrect.
To fix the problem, the endpoint must present a chain where the next certificate's subject equals the current certificate's issuer.
A tool like OpenSSL can be used to validate whether the distinguished name (DN) of a certificate's issuer is equal the DN of the next certificate's subject, which must match for the chain to be valid.
If you want to see the certificate information by yourselves, use the below openssl command,
openssl s_client –showcerts –connect hostname:port
where "hostname:port" is your endpoint that you want to connect.
The command will show the certificates as they are being sent.You can then check the list of certificates to verify if the certificate chain is properly installed.
Please note that OpenSSL is a third party tool and does not come in scope of Salesforce support.
000385068

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.