• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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?
 
What are you doing in my house? Get 'em tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic