Did you mention where you have the trust store in the client side?
 

Thanks & regards,
Ayyappan Gandhirajan

[GANDHIRAJAN,AYYAPPAN (HP-India,ex2)]  -----Original Message-----
From: jagannath [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 17, 2004 3:00 PM
To: [EMAIL PROTECTED]
Subject: SSLHandshakeException

Hi,

I am trying to run WSOverSSL example. I have installed axis in tomcat. I have generated certificates and keystore using the keytool as mentioned in the README of the example. I have also configured Tomcat for SSL. But when I invoke a method in my deployed Web Service I get an SSLHandshake Exception.

Feb 11, 2004 6:00:24 PM org.apache.axis.client.Call invoke
INFO: Mapping Exception to AxisFault
AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.userException
 faultString: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Couldn't find trusted certificate
 faultActor: null
 faultDetail:
        stackTrace: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Couldn't find trusted certificate
        at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
        at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:244)
        at org.apache.axis.transport.http.HTTPSender.getSecureSocket(HTTPSender.java:156)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:116)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
        at org.apache.axis.client.Call.invoke(Call.java:2102)
        at org.apache.axis.client.Call.invoke(Call.java:1851)
        at org.apache.axis.client.Call.invoke(Call.java:1777)
        at org.apache.axis.client.Call.invoke(Call.java:1315)
        at com.adventnet.adaptors.soap.axis.SoapEngine.deployAgentService(SoapEngine.java:116)
        at com.adventnet.adaptors.soap.SoapAdaptor.instantiateAdaptor(SoapAdaptor.java:369)
        at com.adventnet.adaptors.AbstractAdaptor.startService(AbstractAdaptor.java:103)
        at com.adventnet.adaptors.soap.SoapAdaptor.preRegister(SoapAdaptor.java:325)
        at com.adventnet.jmx.MBeanServerImpl.registerMBean(MBeanServerImpl.java:642)
        at com.adventnet.manageengine.configuration.SOAPAdaptorInitializer.initializeAdaptor(SOAPAdaptorInitializer.java:90)
        at com.agent.SubAgentStartup.initAdaptors(SubAgentStartup.java:223)
        at com.agent.SubAgentStartup.initAdaptorsServices(SubAgentStartup.java:197)
        at com.agent.SubAgentStartup.initialize(SubAgentStartup.java:119)
        at com.agent.SubAgentStartup.main(SubAgentStartup.java:744)
Caused by: java.security.cert.CertificateException: Couldn't find trusted certificate
        at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(DashoA6275)
        at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(DashoA6275)
        ... 28 more


javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Couldn't find trusted certificate
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:120)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:134)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
        at org.apache.axis.client.Call.invoke(Call.java:2102)
        at org.apache.axis.client.Call.invoke(Call.java:1851)
        at org.apache.axis.client.Call.invoke(Call.java:1777)
        at org.apache.axis.client.Call.invoke(Call.java:1315)
        at com.adventnet.adaptors.soap.axis.SoapEngine.deployAgentService(SoapEngine.java:116)
        at com.adventnet.adaptors.soap.SoapAdaptor.instantiateAdaptor(SoapAdaptor.java:369)
        at com.adventnet.adaptors.AbstractAdaptor.startService(AbstractAdaptor.java:103)
        at com.adventnet.adaptors.soap.SoapAdaptor.preRegister(SoapAdaptor.java:325)
 
Can I configure axis to allow non trusted certificates or else what should be done so that I can invoke the method.

Any help is greatly appreciated.

Thanks,
Jagannath

Reply via email to