Comment on Tutorial - javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target By Ramlak



Comment Added by : Ankur

Comment Added at : 2012-02-24 16:49:59

Comment on Tutorial : javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target By Ramlak
There is 3rd Party webservices hosted over HTTPS, while consuming webservice i am facing SSL handshake failure error.

For security reasons we do no have access to 3rd party url or service, its only our client can access from there environment.

I have done enough hit and trial but still not succeeded.

Our application is running on Weblogic 9.2.

3rd party have provided the certificate (.p7b format). I have imported these certificates in the javakeystore (cacerts), even in the weblogic keystores (demotrust.jks), but still same error. I have tried different combination of importing the certificate in keystore, i can see the entry of teh certificate in the keystore as well.

Even the stubs we have asked the client to generate in there environment(since we cannot acces from our environment), using HTTP stubs are getting generated but using HTTPS, it gives SSL handshake failure.

I think if we resolve this issue, then application will also run.

Application runs fine on http, but on https it gives SSL handshake failure error.

I have properly converted from (.p7b to .cer format and then imported), even used .p7b to .pem to .der format and then imported in the java keystore, demotrust.jks, but still does not work.

Am i missing any steps, please let me know.


View Tutorial



Ask a Question

Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. This is very clear and explains the concepts in a
View Tutorial          By: Reite at 2011-02-18 13:55:07

2. Is it possible to create a Reader class without lo
View Tutorial          By: bs at 2010-10-11 05:42:34

3. The example is good but there is an easy to iterat
View Tutorial          By: manish at 2013-03-24 16:21:03

4. hello,
i have completed my bsc(computer sci

View Tutorial          By: Geeta at 2012-07-25 13:35:07

5. Please tell me how to display the contents of stac
View Tutorial          By: Senthil at 2014-05-21 21:44:05

6. today Iam getting time ,date of sending and "
View Tutorial          By: raghu at 2012-01-07 14:43:32

7. this is good arraylist
View Tutorial          By: shaffy at 2010-07-31 04:25:17

8. I am getting the error below.

Tue J

View Tutorial          By: ganesh at 2008-07-01 05:35:31

9. excellent..... thanks it help me a lot.......
View Tutorial          By: REJAPUTRA at 2009-10-23 09:19:25

10. ASNWERING: what's the purpose of indexOf('t',10)
View Tutorial          By: Kyle at 2012-03-22 09:17:04