• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

client error: unable to find valid certification path to requested target

 
Ranch Hand
Posts: 165
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I get the following error when trying to run a java client which accesses a web service installed in tomcat/axis.

javax.net.ssl.SSLHandShakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath. SunCertPathBuilderException: unable to find valid certification path to requested target.

I ran: keytool -genkey -alias tomcat -keyalg RSA

on my client machine. I also ran the same exact command on the machine where Tomcat is running.

In my client code, I set the following System properties:

javax.net.ssl.trustStore=<location of my .keystore>
javax.net.ssl.trustStorePassword=changit
javax.net.ssl.keyStore=<location of my .keystore>
javax.net.ssl.keyStorePassword=changeit

What I want is client authentication via a certificate when accessing the web service on tomcat/axis.

In the tomcat server.xml file, what should I set the keystore and truststore attributes to?

Thanks so much in advance for your kind and informative responses.

-Ravi


 
Enjoy the full beauty of the english language. Embedded in this 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