cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sriram C <>
Subject Re: Set custom HostnameVerifier on jaxws:client definition
Date Tue, 09 Dec 2008 18:20:14 GMT

Thanks for your reply. I added the http:conduit with the tlsClientParameters
element set as you advised. However I still see the error on instantiating
the client.

My client xml file (name testContext.xml) is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""

    <import resource="classpath:META-INF/cxf/cxf.xml"/>
    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
       		<http:tlsClientParameters disableCNCheck="true"
       <jaxws:client id="client" 

dkulp wrote:
> On Friday 05 December 2008 2:44:41 pm Sriram C wrote:
>> Hi,
>> I am accessing a SOAP service over https using CXF 2.1.3. The CN on the
>> cert for the service doesn't match the SSLSessionHost, so I need to set a
>> default host name verifier on HttpsURLConnection. I do this in the code
>> and
>> it works fine, however I would like to move the client bootstrapping to
>> Spring and am unable to figure out how to set the default host name
>> verifier via Spring configuration. Please help me by pointing @ the
>> appropriate docs or examples.
> I don't think there is a way via config right now.   The closest is to put
> the 
> disableCNCheck="true" attribute onto the tlsClientParameters element to 
> completely turn off the hostname check.
> -- 
> Daniel Kulp

View this message in context:
Sent from the cxf-user mailing list archive at

View raw message