cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy to CPI interface in PI using REST channel to connect to CPI

Former Member
0 Kudos

Hello Experts,

We are working on Proxy to REST scenario to connect SAP ECC[Proxy] with SAP Cloud Platform Integration/HANA Cloud Integration[REST]. Can you suggest REST channel configuration to be done in PI to connect to CPI/HCI using REST channel.

Also prerequisites to connect to HCI?

Any certificates to be imported from CPI or user roles to be assigned to use it in REST channel?

End point URL to be used in REST channel in PI to connect to CPI/HCI?

Kindly guide me to achieve this in SAP PO 7.4 single stack.

Accepted Solutions (0)

Answers (1)

Answers (1)

KarthikBangeraM
Active Participant
0 Kudos

Hi Venkat,

For SSL handshake, you will have to deploy CPI Load balancer's root and intermediate certificates in PI keystore.
If you plan to go for basic authentication, the user needs to be added to the CPI tenant and assigned role ESBMessaging.send.
In case you go ahead with client authentication then you need to specify your private key (view and name) in Client Authentication section under General Tab of your rest receiver channel and the corresponding public certificate needs to be added either in CPI sender channel or Certificate to User mapping in CPI.
Since you would be using HTTPS channel in CPI the endpoint url will be for format https://<iflmapURL>/http/<Endpoint in channel> which then has to be specified in your REST receiver channel in PI under REST URL tab.

Would also like to know if there is any specific reason as to why you are using REST receiver in PI as opposed to plain http channel.

Regards,
Karthik

Former Member
0 Kudos

Hi Karthik,

What do you suggest HTTP/REST channel in this regards? In CPI they are using HTTPS sender channel.

Please suggest which will be better approach here HTTP/REST ?

In case you go ahead with client authentication then you need to specify your private key (view and name) in Client Authentication section under General Tab of your rest receiver channel and the corresponding public certificate needs to be added either in CPI sender channel or Certificate to User mapping in CPI.

I have below questions on your inputs :

1. You mean private key (view and name) of PI system needs to configured in the receiver REST channel?

2. Public key of PI system needs to be added in CPI sender channel right?

If so then how to generate the Private key & public key of PI system.

If not then which system Private & Public key pairs needs to used & please help me to generate them.

Thanks,

Venkat.

KarthikBangeraM
Active Participant

What do you suggest HTTP/REST channel in this regards? In CPI they are using HTTPS sender channel.

Please suggest which will be better approach here HTTP/REST ?

It depends on your use case. If you have a requirement to convert JSON to XML or vice versa or else if you have a requirement to communicate with a REST API which expects authentication data in its header you can go ahead with REST. Similarly, there are several other requirements.

In case you go ahead with client authentication then you need to specify your private key (view and name) in Client Authentication section under General Tab of your rest receiver channel and the corresponding public certificate needs to be added either in CPI sender channel or Certificate to User mapping in CPI.

I have below questions on your inputs :

1. You mean private key (view and name) of PI system needs to configured in the receiver REST channel?

Yes.

2. Public key of PI system needs to be added in CPI sender channel right?

Yes. Sender channel or Certificate to User mapping section.

If so then how to generate the Private key & public key of PI system.

You can use the NWA certificate functionality in PI to generate the keypairs. You need to get this certificate signed by a CA who is trusted by CPI's load balancer. List of CAs are as below-

https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/Cloud/en-US/4509f605e83c4c939a91b81eb3a...

If not then which system Private & Public key pairs needs to used & please help me to generate them.

N/A

Regards,

Karthik