This blog gives you an idea on how to set up a communication system from ECC to C4C via PI and XML gateway. I worked on the following landscape and though about sharing the experience to make life easy.
In this use case data is flowing from on premise ECC system to C4C system via PI and XML gateway.
To call C4C web service from Client network you need to create one pass-thru service in XML Gateway which will accept the requests from SAP PI system and forwards the HTTPs request to C4C web service using SSL certificates of C4C.
To enable mutual SSL handshake between XML Gateway and C4C system, following activities need to be done:
- C4C shared their private key for authenticating clients (This is applicable only when mutual SSL handshake is required, in this case C4C provided private key with a password (C4C private key.pfx and password ***)
- C4C shared its server certificate along with root and intermediate certificates, which has to be trusted by XML gateway
SAP PI, in turn, also establishes secure HTTPs connection with XML gateway, by adding the gateway’s certificate in its trusted server list and using user/password authentication as shared by gateway.
Server certificates-For validating the clients we used below 3 certificates of C4C in XML gateway.