cricket_176901
Nov 12, 2014Nimbostratus
SSLException when use iControl java api to access old soap based f5 LB service
I used latest iControl java library (11.4) to access our LB data which has f5 soap based service. But met the following exception:
javax.net.ssl.SSLException: hostname in certificate didn't match: !=
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
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:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at iControl.SystemSystemInfoBindingStub.get_version(SystemSystemInfoBindingStub.java:1968)
I searched this issue in the community and found https://devcentral.f5.com/questions/handling-self-signed-certs-with-java-and-icontrol, so I switched to use axis1 v1.2 but didn't resolve the problem. Could anyone guide me how to fix it? And where can I find latest java api reference document? Thanks a lot!