Skip to Main Content

Unable to find valid certification path to requested target. Client application on can not see the t

Salman5May 20 2015 — edited May 20 2015

I built a client application that communicate with external app over ssl. In order to do that I need to import server (External APP) certificate in weblogic 10.3.6 trust store. I did that already in weblogic console, I went to specified server , then Configuration  - > KeyStore -> Custom Identity and Custom Trust . Then I specified the path of the trust store.

But when I run the application on the server I am getting the error:

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

  at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:385)

  at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)

  at sun.security.validator.Validator.validate(Validator.java:260)

  at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)

  at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231)

  at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)

  at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1323)

For testing purpose, I am outputting the trust store location while the client application is running on the server using the following line:

System.out.println(System.getProperty("javax.net.ssl.trustStore"));

What is surprising me it is always null !!!

Why this behavior is happening and why the client application can not see the custom trust store that I specified ?

Extra: I built this application using Jdeveloper 11.1.1.7

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked due to inactivity on Jun 17 2015
Added on May 20 2015
1 comment
256 views