‎2025 Jan 27 9:44 AM - edited ‎2025 Jan 30 12:28 PM
Client Certificate Authentication for Integration Flow Processing in SAP CPI
In this blog, we will discuss Client Certificate Authentication for inbound integration in SAP Cloud Platform Integration (CPI).
Authentication Options
When it comes to authentication, we have two main options:
For Client Certificate Authentication in the HTTP sender adapter of CPI, we will be using the User Role option.
In this scenario, we will share our client certificate with the requester (in this case, Postman) to authenticate the requests to our SAP CPI instance.
Step 1: Log on to CPI BTP Tenant
Step 2: Create and Configure the Service Key
In our case, we will select the Certificate option.
Select the instance> Right hand side select the service key > Click on Create
Add Service Key Name
Key Type- Certificate
Click on create
Click on View> select form
Arrange the certificate like below format after copying certificate value into notepad and save as xxx.PEM.
Example format:
Step 4: Copy Host URL
Example URL:
https://9368e858trial.it-cpitrial06-rt.cfapps.us10-001.hana.ondemand.com
Now move on the Post man tool
Step 5: Configure Postman
Step 6: Add Certificates in Postman
and give the CPI URL which was created in CPI.
Step7: In CPI create a I-flow using Https adapter and maintain as like below.
After deploying the flow we will get the URL and use the same in POSTMAN tool. And authorization type as No AUTH
Step 8: Test the Integration
Trigger test message from POSTMAN.
We can see message in CPI.
Summary
When setting up secure communication between external systems (like Postman) and SAP Cloud Platform Integration, one commonly used method is Client Certificate Authentication. This method ensures that only authorized clients with the appropriate certificates can access your CPI integration flow. In this process, we create and configure a service key with a certificate, then share this certificate with the external requester.
We walked through the steps required to:
Conclusion
Client Certificate Authentication is a robust and secure method for ensuring that only trusted clients can access your SAP CPI integration flows. By following the steps outlined in this blog, you can successfully set up certificate-based authentication, which offers a higher level of security compared to basic authentication methods like username and password.
This approach is particularly useful when integrating with external systems or APIs where maintaining a secure communication channel is critical. By leveraging SAP’s capability to generate certificates, you can simplify the authentication process while maintaining security standards.
Request clarification before answering.
| User | Count |
|---|---|
| 11 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.