tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Doyle <rockymtnma...@gmail.com>
Subject CXF in TomEE: how to set the disableCNCheck global option?
Date Fri, 09 Oct 2015 21:28:52 GMT
How do I configure CXF (embedded in TomEE) with the global variable suggested
by this Exception?

Caused by: java.io.IOException: The https URL hostname does not match the
Common Name (CN) on the server certificate in the client's truststore.  Make
sure server certificate is correct, or to disable this check (NOT
recommended for production) set the CXF client TLS configuration property
"disableCNCheck" to true.

I tried placing below in src/webapp/META-INF/openejb-jar.xml and it failed
to work. 
<?xml version="1.0"?>
<openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1">
    <pojo-deployment class-name="jaxrs-application">
        <properties>
            cxf.jaxws.properties = disableCNCheck=true
        </properties>
    </pojo-deployment>
</openejb-jar>



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/CXF-in-TomEE-how-to-set-the-disableCNCheck-global-option-tp4676463.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Mime
View raw message