SAP Knowledge Base Article - Preview

2396955 - XMLStreamException because of the hostname mismatch in the target URL and CN field of the certificate

Symptom

During the message processing in CPI IFlow you see the following error:

org.apache.cxf.interceptor.Fault: Could not generate the XML stream caused by: javax.xml.stream.XMLStreamException: java.io.IOException: The https URL hostname does not match the Common Name (CN) on the server certificate in the client's truststore.  Make sure server certificate is correct, or to disable this check (NOT recommended for production) set the CXF client TLS configuration property "disableCNCheck" to true.., cause: java.io.IOException: The https URL hostname does not match the Common Name (CN) on the server certificate in the client's truststore.  Make sure server certificate is correct, or to disable this check (NOT recommended for production) set the CXF client TLS configuration property "disableCNCheck" to true.

Due to current design, Connectivity Test may not be throwing the same error.


Read more...

Environment

SAP Cloud Platform Integration

Product

Cloud Integration all versions

Keywords

CPI, Cloud Platform Integration, HCI, HANA Cloud Integration, Server Certificate, Subject Name, outbound, message processing, iFlow, Integration Flow, request, response, SOAP, HTTP, HTTPS, adapter, receiver, endpoint, endpoint URL, XMLStreamException, IOException, fault, SoapFault, certificate, Common Name, CN, disableCNCheck, SAP Cloud Platform Integration , KBA , LOD-HCI-PI-RT , Integration Runtime , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.