Certificate added to keystore still getting Exception !
posted 5 years ago
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?