cancel
Showing results for 
Search instead for 
Did you mean: 

pgp encryption via adapter command line

Former Member
0 Kudos

Hi All,

I'm trying to implement pgp encryption in a File Receiver adapter using the operating System command BEFORE message processing option. My problem is the file written out is not encrypted.

I'm running XI on a Windows box so at my command line in the adapter, I have :

cmd.exe /c "c:\PGPcmdln\XIPGPcommand.bat %F"

And my bat file I have written has:

@echo off

mkdir c:\testTHIS

c:\PGPcmdln\pgp.exe -e %1 TestUserID

The testTHIS directory is being created so I know my bat file is being invoked successfully. I'm able to encrypt successfully at the Windows command line, just not through XI adapter command line.

Can anyone help me with this?

Regards,

Joy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Joy,

You have to check few things here:

a) Execute the script manually and see whether your file is encrypting or not?

b) If encrypting then check for the file permissions when you are executing from XI?

c) Also have you using the public and private keys in your script for encryption and decryption?

I think there is some problem in your PGP script itself. I dont see any Private Key in your Script? Can you please look into that?

Let us know once when you do this. Also see the reply given by me in this thread which may help you:

---Satish

Former Member
0 Kudos

Hi Satish,

Thanks very much for your reply. I managed to solve this yesterday and some of your points are definitely some of the issues I encountered. To help others, I solved my problem by:

1) Change the '\' to '/' in my OS command. For example, 'c:\PGPcmdln\pgp.exe' should be 'c:/PGPcmdln/pgp.exe' Note I am using a Windows XP box.

2) Had to include the +pubring=<location of pubring file> and +secring=<location of secring file> in my command else XI could not find my key ring files.

3) Modify the security of file 'randseed.rnd' so that user SAPService<SID> could read and write to it.

Former Member
0 Kudos

Joy,

Glad to know that it has worked.

---Satish

Former Member
0 Kudos

Hi Expert.

Could you please let me know the step by step process for PGP encryption.

wat software we need to install at the OS level and where we have to install.

Kindly send let me know the total procedure for PGP encryption.

Note: My scenario is that file to file scenario.

there is no mapping in my scenario.

Regards,

Prabhakar.A

Former Member
0 Kudos

Hi Satish.

Could you please let me know the step by step process for PGP encryption.

wat software we need to install at the OS level and where we have to install.

Kindly send let me know the total procedure for PGP encryption.

Note: My scenario is that file to file scenario.

there is no mapping in my scenario.

Regards,

Prabhakar.A

Answers (2)

Answers (2)

former_member189558
Contributor
0 Kudos

Hello Joy,

I guess you are writing the file. Then Call the script After message processing..

Thanks,

Himadri

Former Member
0 Kudos

your command line in file adapter is not working thats why it is not encrypted.

is our bat file placed in the same direcotry where XI polls for the file ?

and check your command line entry in System command BEFORE message processing option.

Regards

Sreeram.G.Reddy

Former Member
0 Kudos

Hi Sreeram,

I don't understand what you mean. My .bat file is being invoked by the file adapter because my directories are being created therefore the adapter can find the .bat file and the command line entry should be fine. Right?