jQuery in Action, 2nd edition
The moose likes Web Services and the fly likes Certificate added to keystore still getting Exception ! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Certificate added to keystore still getting Exception !
 
Similar Threads
Unable to call webservice over SSL
HTTP transport error - Webservices call
https client certificate
Calling a HTTPS webservice--Imp Need Help
https client certificate