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. Thank You,
Code is working well.
Is

View Tutorial          By: dinesh at 2012-06-23 04:33:16

2. I got intersting idea about gauge,thanks...
View Tutorial          By: Marimuthu at 2009-07-20 00:56:27

3. How can i add text under this all images
View Tutorial          By: jana at 2013-07-09 04:32:38

4. Your post helped me to resolve the SSH exception..
View Tutorial          By: Ashwini at 2008-07-14 12:47:32

5. how to downlow the different 5 files please !!
View Tutorial          By: Agnin at 2009-06-24 05:29:09

6. the default construrctor does not give the defalut
View Tutorial          By: muhammad abdullah at 2011-04-11 13:16:20

7. pls help me build a jar application for sending bu
View Tutorial          By: sam at 2011-08-13 11:31:03

8. Hi,

Thanks for this example (glad t

View Tutorial          By: Thor at 2007-10-06 15:12:28

9. nice its working good example.... very useful...
View Tutorial          By: Mamatha at 2012-02-02 09:23:40

10. I will try
View Tutorial          By: bridges at 2009-09-06 22:09:46