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



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. I need how to connect with database connection in
View Tutorial          By: BenGunn at 2010-01-12 03:33:44

2. Hi fiends,
your given approch is correct .

View Tutorial          By: Amit Kumar Singh at 2011-10-10 04:44:58

3. this code should be commented I mean a lot of comm
View Tutorial          By: mmmm at 2012-03-31 00:44:41

4. vinod kumar for j2me app development we need one I
View Tutorial          By: saurabh dixit at 2013-04-18 09:59:23

5. Dudes

I used the abov

View Tutorial          By: Nithin p at 2013-01-06 06:54:33

6. good and nice
View Tutorial          By: Elayaraja j at 2011-06-18 05:30:07

7. hi can you send me the complete working code for
View Tutorial          By: avanti at 2007-10-04 02:30:04

8. Assume scenario:
- i have set connection po

View Tutorial          By: Dan at 2012-02-22 09:48:46

9. The actual code to write F2 is:
f2.write(bu

View Tutorial          By: João at 2012-04-11 19:22:14

10. good one
View Tutorial          By: thyagesh at 2011-12-06 05:06:27