java - How to configure Wildfly 8.2 to disable Common Name verification on ssl connections (CXF disableCNCheck)? -


i'm using wildfly 8.2 host application @ work, application needs @ point access web service allows ssl connections. web service not belong company , cannot alter of configurations. web service uses self signed ssl certificate, has common name (cn) different web service's domain.

i've added web service's certificate jvm keystore, wildfly server won't allow connection completed on account of common name on web services's certificate being different domain name on url.

so, in order application able complete ssl connection, need disable wildfly's common name verification. problem arrives, i've found few solutions on how disable property, 3 more precise. first 2 involve adding few lines standalone.xml configuration file, more precisely both suggest add "system-properties" tag after "extensions" one.

the first one:

    <extensions>         ...     </extensions>     <system-properties>         <property name="cxf.tls-client.disablecncheck" value="true"/>     </system-properties> 

the second one:

    <extensions>         ...     </extensions>     <system-properties>         <property name="org.jboss.security.ignorehttpshost" value="true"/>     </system-properties> 

none of these 2 worked me. third solution using parameter "-dorg.jboss.security.ignorehttpshost=true" initialize server, had no effect well.

how can disable common name check on wildfly 8.2?


Comments