aspose file tools*
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 Spring in Action this week in the Spring 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception for SSl certificate