-
1. Re: Disable hostname verification in WildFly JAX WS
jewellgm Jun 29, 2015 8:45 AM (in response to guru.1306)The only way that I know to disable hostname verification in JBoss AS/WildFly is to set the following system property:
-Dorg.jboss.security.ignoreHttpsHost=true
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.
-
2. Re: Disable hostname verification in WildFly JAX WS
guru.1306 Jun 30, 2015 5:38 AM (in response to jewellgm)Hi
This JAVA argument is not working in WildFly 9.0.2. I am still getting the same exception.
Thanks
Guru
-
3. Re: Disable hostname verification in WildFly JAX WS
jewellgm Jun 30, 2015 5:47 AM (in response to guru.1306)Add the property by modifying your standalone.xml (or standalone-*.xml). Put this immediately after the extensions:
<extensions>
....
</extensions>
<system-properties>
<property name="org.jboss.security.ignoreHttpsHost" value="true"/>
</system-properties>
-
4. Re: Disable hostname verification in WildFly JAX WS
jaikiran Jun 30, 2015 6:00 AM (in response to guru.1306)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?
-
5. Re: Disable hostname verification in WildFly JAX WS
guru.1306 Jul 1, 2015 1:09 PM (in response to jewellgm)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
https://docs.jboss.org/author/display/JBWS/Apache+CXF+integration