CXF xml config doesnt validate using disableCNcheck="true"
I'm using a CXF config file copied directly from the CXF website at: cxf.apache.org/docs/client-http-transport-including-ssl-support.html
However when I run my program the XML does not validate. The error gi开发者_如何学Goven is: Attribute 'disableCNcheck' is not allowed to appear in element 'http-conf:tlsClientParameters'
We are using self-signed certificates in a test environment and just need a quick workaround to use the services!
Here is the cxf.xml file I am trying to use, any help is appreciated!
<http-conf:conduit
name="{https://hostname/service}MyService.http-conduit">
<!-- deactivate HTTPS url hostname verification (localhost, etc)
WARNING ! disableCNcheck=true should NOT be used in production-->
<http-conf:tlsClientParameters disableCNcheck="true" />
</http-conf:conduit>
The attribute should be disableCNCheck (capital C on Check). I believe just fixing that should fix the issue.
精彩评论