This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Security and the fly likes Exception for  SSl certificate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Exception for  SSl certificate" Watch "Exception for  SSl certificate" New topic
Author

Exception for SSl certificate

Abhay Tanaya
Greenhorn

Joined: Feb 03, 2009
Posts: 8
Hi

I am getting below wxception. Certificates are installled on ap server. But some times we are getting exceptions inthat case we have to restart the server. FAter restarting server we are able to connect.

Exception in connect_var: 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

Please let me know if any one have any solution on this.

Thanks
Abhay
Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 423

Are the certificates self-signed? I had once the problem with a self-signed certificate which expired and (I think at least) I was getting the same exception. Are your startup-scripts somehow customized (e.g. deploying a new certificate on each restart)? And what does "sometimes" mean? Each day, each month? Is there a pattern?

Last but not least maybe a helpful reading: http://blogs.sun.com/andreas/entry/no_more_unable_to_find
Abhay Tanaya
Greenhorn

Joined: Feb 03, 2009
Posts: 8
Hi
Thanks for your reply. There is not pattern. Sometimes means it happens at any time. I cannt understand behaviour.
The link which you have provided that might be helpfull for me.

Thanks
Abhay
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Exception for SSl certificate
 
Similar Threads
"Exception processing JAR at resource path" error.
Exception in deploying axis2.war in JBoss4.05
Unsatisfied Link Error : Native library XXXX.so already loaded in another classloader
not bound?
Exception in connect_var: javax.net.ssl.SSLHandshakeException