匹配的通用名称(CN),我收到以下错误的HTTPS URL主机名不上的服务器证书
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.
,当我尝试连接并使用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" />
的cxf.xml文件被放置在WEB-INF /类/ CxfService。
请让我知道什么是问题?
是不是cxf.xml文件应该直接在'WEB-INF/classes'下? –
@Peter,谢谢你的回应,但是cxf.xml的位置在这里很重要,因为它在WEB-INF/classes下是1级。 – user1795961
@Peter:我尝试将cxf.xml文件放在WEB-INF/classes下,但这也没有帮助。仍然是同样的消息。 – user1795961