Skip to Content
avatar image
Former Member

Linux script for PGP encryption

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Aug 17, 2007 at 07:15 AM

    does anybody have any idea???

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 08:16 AM

    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:

    pgp-encription

    Might be useful.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 08:20 AM

    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

    Is there any FTP API available from SAP?

    Send Text file to FTP in binary mode with PGP encryption

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

    Converting IDOC to XML

    XI implementation

    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:

    pgp-encription

    Might be useful.

    pgp-encription

    pgp-encription

    \triggering-encryption-script-with-xi

    Pls rewards if useful

    Add comment
    10|10000 characters needed characters exceeded