cancel
Showing results for 
Search instead for 
Did you mean: 

Linux script for PGP encryption

Former Member
0 Kudos

Hello,

We are trying to do PGP encryption by giving the OS command in the File adapter. Can somebody provide me the exact linux script that we should use to do PGP encryption?

Note: We have XI-3.0 on LINUX.

Promise points for helpful answers.

Regards,

Raji.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Rajashree

PGP Encryption is used to support the transmission of sensitive data to / from third party systems via XI.

Adapter modules are developed to encrypt the file using PGP.

We had a similar requirement where we used PGP encryption.The module was developed using Cryptix OpenPGP which is a Java implementation of the OpenPGP standard.When the module is called in the adapter, it uses the PGP key provided by the party that will receive the encrypted message. This module should be called prior to calling the Sap adapter

Logic Flow/Processing:

-


1.Read the XML payload and message for getting the needed data.

2.Read the key to be used in the encryption and log the key to be used and the beginning of the encryption.

3.Call the PGP encryption and compression method.

4.Log whether encryption has been successful.

5.Set as payload the message content encrypted, and the principal data.

6.If any error occurs, logs an exception in PGP adapter module and the error reason.

7.Return the message.

Go through This links

http://www.webmethods.com/meta/default/folder/0000007429

http://www1.webmethods.com/PDF/webMethods_for_SAP-wp.pdf

Current versions found at http://www.cryptix.org and http://www.bouncycastle.org.

http://www.bouncycastle.org/documentation.html

If you want to use the unix script on windows then you need cygwin. Take the shell executable and cygwin.dll and copy them to another machine and try out.

Else you write an .exe or a batch file where you will give your PGP command to encrypt and decrypt and execute it from the OS level in your adapter. Check my answer in this thread:

Might be useful.

\

Pls rewards if useful

Former Member
0 Kudos

try this

Current versions found at http://www.cryptix.org and http://www.bouncycastle.org.

http://www.bouncycastle.org/documentation.html

If you want to use the unix script on windows then you need cygwin. Take the shell executable and cygwin.dll and copy them to another machine and try out.

Else you write an .exe or a batch file where you will give your PGP command to encrypt and decrypt and execute it from the OS level in your adapter. Check my answer in this thread:

Might be useful.

Former Member
0 Kudos

does anybody have any idea???