Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Encryption of payload using certificate

0 Kudos
435

Hi all,

I need to send an xml payload to an API from SAP. The payload needs to be signed and encrypted using our certificate , which was specified by our client. I am not able to understand how I can achieve this. Any help would be appreciated.

1 REPLY 1

CarlosRoggan
Product and Topic Expert
Product and Topic Expert
0 Kudos
303

Hello,

are you using SAP Cloud Integration (CPI) ?
You can design an iFlow and add Signer and Encryptor steps, as desired.
They will do the job automatically.
The certificate is specified in the configuration of the Signer/Encryptor
The message can then be sent to an OData receiver.

Detailed information and easy to understand is given in these blogs:

https://blogs.sap.com/2023/03/23/sap-cloud-integration-understanding-pkcs-7-cms-signer/

https://blogs.sap.com/2023/02/21/sap-cloud-integration-understanding-pkcs-7-cms-encryptor/

Kind Regards,
Carlos