WSConsumer unable to find valid certification path

Situation:

When executing a web service consumer, the following error is shown

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilder
Exception: unable to find valid certification path to requested target]

 

Cause:

This error is generated because Adeptia is unable to validate the certificate of the web service provider server

 

Solution:

Import the SSL certificate of the web service provider server into the truststore (cacerts file) of Adeptia (\AdeptiaServer\ServerKernel\etc\truststore)

1) Download the SSL certificate from the web service provider

2) Create a backup of the cacerts file (\AdeptiaServer\ServerKernel\etc\truststore)

3) Using the Keytool, import the certificate into the Adeptia truststore. The java keytool is available in any JRE, but you can use the one within Adeptia's installation directory as well (\AdeptiaSuite\AdeptiaSuite-x.x\jre\bin). The keytool is a command line program, so you need to open it through the command prompt.

  • Import a root or intermediate CA certificate to an existing Java keystore

    keytool -import -trustcacerts -alias root -file certificate.crt -keystore cacerts

  • Import a signed primary certificate to an existing Java keystore

    keytool -import -trustcacerts -alias provider -file certificate.crt -keystore cacerts

Note: The default password is changeit

4) Execute the web service consumer

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.