Hello:


I'm using Axis2 and I need to use SSL to connect to a WS.

In server side I do the following:



            I configure the server.xml file in tomcat. I have:

                        <Connector port="8443"

               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

               enableLookups="false" disableUploadTimeout="true"

               acceptCount="100" debug="0" scheme="https" secure="true"

               clientAuth="false" sslProtocol="TLS" />



            Then I generate a server certificate doing the following:

                        keytool -genkey -alias tomcat -keyalg RSA

                        keytool -export -alias tomcat -storepass changeit
-file server.cer

                        keytool -import -v -trustcacerts -alias tomcat -file
server.cer -keystore %JAVA_HOME%/jre/lib/security/cacerts -keypass changeit
-storepass changeit



            I start-up tomcat and when I call the service using the EPR
"https://mymachine:8443/ ...." I receive the following exception:



                        I/O exception (org.apache.axis2.AxisFault) caught
when processing request: *sun.security.validator.ValidatorException*: PKIX
path building failed: *
sun.security.provider.certpath.SunCertPathBuilderException*: unable to find
valid certification path to requested target



I don't know if I need to indicate something from the client side.



Thanks,

Nuria

Reply via email to