The only way that I know to disable hostname verification in JBoss AS/WildFly is to set the following system property:
Obviously, this is a global setting. If you only want to disable verification for this particular service, this would not be the way to do that.
This JAVA argument is not working in WildFly 9.0.2. I am still getting the same exception.
Add the property by modifying your standalone.xml (or standalone-*.xml). Put this immediately after the extensions:
<property name="org.jboss.security.ignoreHttpsHost" value="true"/>
Guru Prashanth Thanakodi wrote:
This JAVA argument is not working in WildFly 9.0.2.
How did you set it and how do you start the server? Also, there's no 9.0.2. Are you talking about 9.0.0.CR2?
Thanks for your help. I am using JAX-WS client. So I had to set this property <property name="cxf.tls-client.disableCNCheck" value="true"/>
Got to know from this link. Every step is clearly documented here. I am using 9.0.0 CR2