• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Certificate added to keystore still getting Exception !

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
reply
    Bookmark Topic Watch Topic
  • New Topic