我正在使用直接从CXF网站复制的CXF配置文件:cxf.apache.org/docs/client-http-transport-includes-ssl-support.html
但是,当我运行程序时,XML不会验证。给出的错误是:不允许属性'disableCNcheck'出现在元素'http-conf:tlsClientParameters'中
我们正在测试环境中使用自签名证书,只需要快速解决方法即可使用服务!
这是我尝试使用的cxf.xml文件,感谢您的帮助!
<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>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11193 次 |
| 最近记录: |