小编use*_*961的帖子

https URL主机名与服务器证书上的公用名(CN)不匹配

我收到以下错误

javax.xml.ws.soap.SOAPFaultException: Marshalling Error: The https URL hostname does not match the Common Name (CN) on the server certificate.  To disable this check (NOT recommended for production) set the CXF client TLS configuration property "disableCNCheck" to true.
Run Code Online (Sandbox Code Playgroud)

当我尝试连接和使用Web服务时.

我在cxf.xml中添加了以下行,但它仍然无效.

<http-conf:conduit  name="*.http-conduit">
<!--  deactivate HTTPS url hostname verification (localhost, etc)
WARNING ! disableCNcheck=true should NOT be used in production -->
<http-conf:tlsClientParameters  disableCNCheck="true" />
Run Code Online (Sandbox Code Playgroud)

cxf.xml文件位于WEB-INF/classes/CxfService下.

请告诉我这个问题是什么?

java web-services

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

java ×1

web-services ×1