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 Kr <ba...@gmail.com> on 2005/08/09 08:02:56 UTC
unknown certificate - SSL Exception
Hi All,
I have a https based web service. I have imported the service provider
certificate into my local truststore. I am using AXIS 1.2 Final and
WebSphere 5.0. I set below system properties in my client program:
System.setProperty("java.protocol.handler.pkgs","com.ibm.net.ssl.internal.www.protocol");
Security.addProvider(new JSSEProvider());
System.setProperty("javax.net.ssl.trustStore","c:\.keystore");
System.setProperty("javax.net.ssl.trustStorePassword", "mystorepassword");
However I get below exception:
faultSubcode:
faultString: javax.net.ssl.SSLHandshakeException: unknown certificate
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException:
unknown certificate
at com.ibm.jsse.bs.a(Unknown Source)
at com.ibm.jsse.bs.startHandshake(Unknown Source)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:183)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:390)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:137)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
Now can anyone please tell me what is that I am missing. Is the
certificate in my truststore not recognized for ssl handshaking.
Please suggest ...
Thanks & Regards,
Kr.