Register / Login
client error: unable to find valid certification path to requested target
posted 7 years ago
I get the following error when trying to run a
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
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.keyStore=<location of my .keystore>
What I want is client authentication via a certificate when accessing the web service on tomcat/axis.
In the tomcat server.xml file, what
I set the keystore and truststore attributes to?
Thanks so much in advance for your kind and informative responses.
Tomcat axis2 web service with HTTPS
accessing web service over ssl
Certificate added to keystore still getting Exception !
JBoss webservice & ssl
Connecting to a web service using https