File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Certificate added to keystore still getting Exception ! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Certificate added to keystore still getting Exception !" Watch "Certificate added to keystore still getting Exception !" New topic
Author

Certificate added to keystore still getting Exception !

Anand Athinarayanan
Greenhorn

Joined: May 20, 2011
Posts: 27
Hello Ranchers,
This is my first post here and I hope i'm posting it in the correct forum, if not please forgive. Ok so here is my problem.
I have a stand alone java class (with main method) which connects to a secure webservice. I have generated the client stubs and imported it in my client code(the java class) .
Since the webservice is secure I have added the certificate that i was provided with, to my keystore using the keytool command.
I even got a message "certificate successfully added to the keystore".
I have set the path to the keystore in my System properties in my code.
But when I execute my java program I get the following error

"unable to find valid certification path to requested target". And more exceptions like this




Is there anything else I need to do or what am I doing wrong here?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Certificate added to keystore still getting Exception !