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. When JVM find two string object with de same conte
View Tutorial          By: ku at 2009-05-11 10:17:51

2. thanks Mr Ramlak
i m using samsung j600 mob

View Tutorial          By: yash at 2008-05-13 15:05:49

3. thanks for your code
could you send me the

View Tutorial          By: nocturne at 2009-01-09 01:57:05

4. ITS GOOD TO UNDERSTAND AS A BEGINNER,
THANK

View Tutorial          By: Anonymous at 2009-07-24 06:31:50

5. Please note that the above code does not work with
View Tutorial          By: mk at 2012-02-15 10:59:49

6. Performance is low while working with BULK DATA
View Tutorial          By: kailash at 2009-07-17 06:11:55

7. java is new for me..... since i dont know from bas
View Tutorial          By: m.padma at 2011-08-08 15:40:23

8. Hi friends i am the beginner ..
please guid

View Tutorial          By: Jigar at 2013-05-20 11:04:03

9. it is unfair to leave this portal without thanking
View Tutorial          By: anil kumar at 2009-12-30 23:40:25

10. hola

no funciona este
Stri

View Tutorial          By: ahmed at 2012-05-11 14:18:46