I'm trying to get an Axis2/Rampart client web services application to work.
My server is using a self-signed certificate, as this is just a test.  I'm
running into the error:

Exception in thread "main" org.apache.axis2.AxisFault: Connection has been
> shutdown: 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
>         at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>         at
> org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:83)
>         at
> org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
>         at
> org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
>         at
> org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
>        ...
>

I'm using FreeBSD and OpenJDK6 on this machine. There's a Java KeyStore at
"/usr/local/openjdk6/jre/lib/security/cacerts" which I'm assuming is the one
I want to add this certificate to.  Would adding my certificate to some (if
not this one) "cacerts" keystore force Axis2 to trust my certificate?

-- 
Jay Sullivan

Reply via email to