‎2011 Aug 18 11:08 AM
Guys,
Is it possible to achieve a file encryption on the fly with ABAP?
What I am trying to achieve is, I have an xml file coming out of SAP and I want to send it over to vendor system using WS (Web services) and Plain old xml over http (POX) combination, and I want to encrypt the file using PGP/ PKI encryption. I want to know if we can encrypt the xml file using ABAP code and send it over via WS (Web services)?
Regards,
Sudeep
‎2011 Aug 18 11:53 AM
Hi Sudeep,
Try using the function module : SXPG_COMMAND_EXECUTE
refer the below link
Encryption & Decryption of data using ABAP
/people/kathirvel.balakrishnan2/blog/2006/11/21/encryption-decryption-of-data-using-abap
JAVA API's for PGP Encryption/Decryption
http://www.bouncycastle.org/documentation.html
you got some examples
Check this document on how to do message level security:
Deploying the SAP Java Cryptographic Toolkit
http://help.sap.com/saphelp_nw04/helpdata/en/8d/cb71b8046e6e469bf3dd283104e65b/frameset.htm
Key Storage Service
http://help.sap.com/saphelp_nw04/helpdata/en/e9/a1dd44d2c83c43afb5ec8a4292f3e0/frameset.htm
If these things are already done then u need juz few modification in the adapter configuration.
In FTP Connection Parameters -> command line -> FTPS (Control and Data connection)
You can also go through the blogs
Encryption(SSL)
/people/varadharajan.krishnasamy/blog/2007/05/11/how-to-use-digital-certificates-for-signing-encrypting-messages-in-xi
Examples for Using Digital Signatures
http://help.sap.com/saphelp_nw04s/helpdata/en/a4/d0201854fb6a4cb9545892b49d4851/frameset.htm
How to configure Message level security
document on encryption in adpaters
Hope it would help u.
Thanks,
regards,
akshay ruia.
‎2011 Aug 18 11:53 AM
Hi Sudeep,
Try using the function module : SXPG_COMMAND_EXECUTE
refer the below link
Encryption & Decryption of data using ABAP
/people/kathirvel.balakrishnan2/blog/2006/11/21/encryption-decryption-of-data-using-abap
JAVA API's for PGP Encryption/Decryption
http://www.bouncycastle.org/documentation.html
you got some examples
Check this document on how to do message level security:
Deploying the SAP Java Cryptographic Toolkit
http://help.sap.com/saphelp_nw04/helpdata/en/8d/cb71b8046e6e469bf3dd283104e65b/frameset.htm
Key Storage Service
http://help.sap.com/saphelp_nw04/helpdata/en/e9/a1dd44d2c83c43afb5ec8a4292f3e0/frameset.htm
If these things are already done then u need juz few modification in the adapter configuration.
In FTP Connection Parameters -> command line -> FTPS (Control and Data connection)
You can also go through the blogs
Encryption(SSL)
/people/varadharajan.krishnasamy/blog/2007/05/11/how-to-use-digital-certificates-for-signing-encrypting-messages-in-xi
Examples for Using Digital Signatures
http://help.sap.com/saphelp_nw04s/helpdata/en/a4/d0201854fb6a4cb9545892b49d4851/frameset.htm
How to configure Message level security
document on encryption in adpaters
Hope it would help u.
Thanks,
regards,
akshay ruia.
‎2011 Aug 18 12:29 PM
Hi,
you should think about encrypting the connection (https instead of http).
Best regards,
Oliver