cancel
Showing results for 
Search instead for 
Did you mean: 

PGP Encryption with SAP PI

07-28-2009 8:27 PM
620 views 9 comments
0 Likes
SAP Managed Tags
Subscribe

Hi, Friends:

I have searched around the forum, but still have following doubts:

1. In our case, we need to pick up file, execute mapping program, then encrypt it.

Because we need to do message mapping, on sender side, we need to file content conversion.

Then on receiver side, we need to content conversion again.

In this case, can we call OS command to execute PGP unix script to encrypt the file after message processing on receriver adapter ?

2. In case the encryption fails, how do we check the return code ?

Thanks

Liang

0 Likes

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Likes

Close it for now

Former Member
0 Likes

Close it for now, we used other approach

Former Member
0 Likes

Hi Expert,

could you please tell me the process what you are followed..

I need to implement PGP encryption in one scenario.

Kindly share the software requirements and step by step process.

Regards,

Prabhakar.A

Former Member
0 Likes

Hello ,

Could you please suggest what was encryption/decryption process you had used ?

Thanks in advance .

Regards

Tisha Dharod

Former Member
0 Likes

Hi,

While I am executing PGP script it is showing an error:

*sapgpg: ERROR: -e and -d are mutually exclusive and one of them must be applied Usage: sapgpg -e|-d -u localuser -r remoteuser -i infile -o outfile -p passphrase*

*External program terminated with exit code 1*

Please suggest how I will proceed with this.

Regards,

Minakshi

Former Member
0 Likes

Liang,

This is the one I am talking about:

http://aedaptive.com/index.php/solutions/pgp-for-sap-netweaver

Regards,

---Satish

Former Member
0 Likes

Satish and Aamir

Thanks both of you for your valuable inputs.

Best Regards.

Liang

Former Member
0 Likes

Liang,

PI will call the script and executes it. But it dont have the control within the script. So Once you are running the script at OS level the control will be at the OS level and you can do whatever you want from OS level. But here you cannot know what happend because you control is not there.

So from OS level you can send a mail or as aamir told if the script dont run then send the file to a different folder and let another interface keep poling for this interface. As soon as you see you can send it as an email.

Else I think you have certain certified adapters for this fucntionality for PI also. You may need to buy them.

Other option would be to write an adapter module which can do this for you.

Regards,

---Satish

Former Member
0 Likes

>>can we call OS command to execute PGP unix scrip

Yes,you can do this,just remember that OS scripts run on the server which hosts adapter engine,so scripts will be executed on NFS,not on FTP.

>>n case the encryption fails, how do we check the return code ?

You can not track execution of script from XI.

A work around we did was to make the script write log of its execution,configure a separate XI interface which will read this log and send an e-mail in case the log shows error messages.

Thanks

Aamir

Edited by: Aamir Suhail on Jul 28, 2009 1:31 PM