cancel
Showing results for 
Search instead for 
Did you mean: 

How To do Digital Sign and Verify sign in SAP PI through Mapping

sapjmm
Participant
0 Kudos

Dear Experts,

We are working on one of the interface we need to do Digital sign and Verify sign the payload. Our scenario is like this, we have to do digital sign on transaction part of the payload and signed data need to insert in header part of the payload that is signature tag. Similarly we need to verify the payload digital sign which is coming from client. In this scenario we are interchanging our public certificates, to verify the digital sign.

This we need to achieve in mapping .How to achieve in mapping.Please find the Sign tag in mapping.Please respond as soon as possible .

Thanks Murali

Accepted Solutions (0)

Answers (1)

Answers (1)

sapjmm
Participant
0 Kudos

Dear Experts,

How to implement digital signature and insert into signature tag How to achieve this in sap pi .

Thanks,

Murali

nitindeshpande
Active Contributor
0 Kudos

Hi Murali,

Have you gone through the below blog for signing using WSSE?

http://people/rajendra.badi/blog/2011/08/24/configuring-wsse-digital-signing-and-encryption-using-sa...

Please try the above method. If this method is not successful, then please try any one of the methods from the below blog -

Regards,

Nitin

Bhargavakrishna
Active Contributor
0 Kudos

Hi Murali,

you can use PGP custom adapter module to achieve this. please refer the below links for more details.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/307deff5-a5ed-2e10-e3b2-96770ee3a...

[TEST CASE]4. Use Digital Signature in PI Sheet - ERP Manufacturing (PP) - SCN Wiki

Regards

Bhargava Krishna

bhavesh_kantilal
Active Contributor
0 Kudos

What is the target adapter you are using? It could be supported off the shelf by the target adapter type.

Regards

Bhavesh

sapjmm
Participant
0 Kudos
nitindeshpande
Active Contributor
0 Kudos

Hi Murali,

Sorry, please find the link -

I have mentioned various methods to achieve this, in my blog. You can follow any one of those -

Regards,

Nitin

sapjmm
Participant
0 Kudos

Hi Experts,

Bellow is the mapping screen shot in this screen shot there is a field Sgntr under that XMLSgntrs field which is having data.

Now we are handling Sgntr field but we are unable to handle XMLSGntrs .Which is under the Sgntr field .So how to handle to XMLSgntrs field which is having the data related to PKCS7.

nitindeshpande
Active Contributor
0 Kudos

Hello Murali,

From your data i can infer that you are sending pain 001 file. Is it to the Bank directly or through SWIFT?

And how did you add the signature field to your datatype? Is it a part of the pain 001 structure datatype?

Regards,

Nitin

sapjmm
Participant
0 Kudos

Hello Nitin,

yes,sending pain 001 to bank directly.

Yes,Sign is part of pain1 stracture datatype.

Thanks

Murali

sapjmm
Participant
0 Kudos

Hi Nitin,

Pls find the mapping we used for the Sgnr field.

nitindeshpande
Active Contributor
0 Kudos

Hello Murali,

What is the UDF signData doing? And why you are not using the signing methods mentioned in previous replies?

Regards,

Nitin

sapjmm
Participant
0 Kudos

Dear Nitin,

Signdata udf function will check the sign in canonical form which is another udf as per bank .

udf bellow

AbstractTrace trace = container.getTrace();

  Sign_Data sp = new Sign_Data();

  signedData = sp.Sign_data(data, KeyStoreview, KeyStoreCert, trace);

  return signedData;