[Axis Web Service client] PKIX path build failed
843833Jun 24 2008 — edited Jun 26 2008Dear All,
I got a task to create client for Axis-based Web Service over SSL (certificate based).
So, the trouble appeared when I tried to generate web service stub classes using <axis-wsdl2java> Ant task:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: 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
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: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 have exported client certificate to .cer file and imported it to JDK keystore using next command line:
%JAVA_HOME%\bin\keytool -import -alias <cert-alias> -file c:\ca-cert.cer -trustcacerts -v -keystore %JAVA_HOME%\jre\lib\security\cacerts - but the error still appeared.
So, how I can point my Eclipse project to this certificate to receive an ability generate web service stub and perform web service methods calls at all?
Thanks foreword for any usefull answers/suggestions about this issue!