Skip to Content
0

PGP Decryption Issue in SAP PI

Apr 27, 2017 at 06:41 AM

210

avatar image
Former Member

I am decryption the file in Sender channel ,Keys are placed in the path /usr/sap/<SYSID>/* constant path , and i am using the ownPrivateKey , partnerPublicKey,pwdOwnPrivateKey as key are in std. path i am not using Keyrootpath, from SAP(AL11) we are trying to fetch the file to PI and decrypt and put the file back to same path to SAP (AL11) , I have ensured the key path ans the files present and the names i used all are correct , password is correct, I am not getting any error but file is not picked from source, I have tried opening this file in AL11 it said it is not the .TXT file . Then i created one text file in AL11 i tried to access thru PI that worked fine, it picked the file and placed in same folder, I have then again tried this problemetic file without PI only in PGP decryption it worked with same key i used . so i am not able say it is File error.

so what could i check again. there is no error also , but when i ping the channel in warning i see this .pgp doesnt exist as yellow mark, but that file is present but still PI could not recognize that file. if i change that to TXT file PI cut and paste again without issue.

should i ask the vendor whether this file used PI encrypted key ? or something like that ?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Manoj K Apr 27, 2017 at 07:08 AM
0

Gayathri ,

Would you mind sharing screenshot of channel with File Access Parameters as well as module too.

Br,

Manoj

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Apr 27, 2017 at 08:59 AM
0

2017-04-27-14-24-46.jpg Now i am getting this error in Action log, Error: Null ,

I am trying to confirm with basis whehter the pwd is correct , whatelse should i check to make sure this error would not occur,

how should the source file be ? any extension restriction ? or how should that file be encrypted, what i got from my partner is they have theris private key and signed with public key, we decrypt with out private key and the partners public key .

what decryption algo we use in PI defaulty because we are not using any ALGO here as encryption ? should the encrytion algo they use and her in PGP shd be same ?


Show 1 Share
10 |10000 characters needed characters left characters exceeded
  • Please check the password of your private key.
  • Please check the file manually and see how to content looks is it encrypted or not ?
  • Try adding Parameter ignoreNonPGPMessage to true.
how should the source file be ? any extension restriction ? or how should that file be encrypted, what i got from my partner is they have theris private key and signed with public key, we decrypt with out private key and the partners public key .
what decryption algo we use in PI defaulty because we are not using any ALGO here as encryption ? should the encrytion algo they use and her in PGP shd be same ?

The source file should be encrypted not human readable .No file Extension restriction.

Partner will encrypt using your public key and sign using his private key , you will decrypt it using your private key and verify signing using partner's public key.

0
avatar image
Former Member Apr 27, 2017 at 11:10 AM
0

Hi Gayathri,

To use decryption and verification work, your file should be encrypted using the key pair.

Make sure the file you are picking is encrypted one.

Thanks,
Apu

Share
10 |10000 characters needed characters left characters exceeded