You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by lucky <un...@gmail.com> on 2008/03/06 15:04:15 UTC

Axis1 1.3 Client side configuration for https end points

Hi,
I configured my Tomcat 5.0 for https.I am able to deploy Axis2 1.3 and can
access admin and other pages,service end points are also shown as https and
I am able to invoke getVersion of verion service through browser.
I am also able to run a sample service without https on same server. However
when I access services using https from clients its fails giving validation
error.
Exception in thread "main" org.apache.axis2.AxisFault:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target

I understand that I need to do some configuration on client side also. Can
some one tell me what are those steps and if there is any clear
article/tutorial on that.
Any help is much appreciated.
Thanks a lot

Re: Axis1 1.3 Client side configuration for https end points

Posted by Upul Godage <up...@gmail.com>.
You have to give the keystore which has the certificate which can validate
the server certificate using the following properties.

System.setProperty("javax.net.ssl.trustStore", "path/to/truststore");
System.setProperty("javax.net.ssl.trustStorePassword", "password");"

Upul

On Thu, Mar 6, 2008 at 7:34 PM, lucky <un...@gmail.com> wrote:

> Hi,
> I configured my Tomcat 5.0 for https.I am able to deploy Axis2 1.3 and can
> access admin and other pages,service end points are also shown as https and
> I am able to invoke getVersion of verion service through browser.
> I am also able to run a sample service without https on same server.
> However when I access services using https from clients its fails giving
> validation error.
> Exception in thread "main" org.apache.axis2.AxisFault:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
>
> I understand that I need to do some configuration on client side also. Can
> some one tell me what are those steps and if there is any clear
> article/tutorial on that.
> Any help is much appreciated.
> Thanks a lot
>