cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PO 7.5 - PGP Decryption Issue

0 Kudos

Hi,

I am trying to decrypt a PGP encrypted file in the STFP sender channel. To do this I have set up PGPDecryption module on the SFTP sender channel as shown below. However I am getting the error "FIle is no valid PGP Message. Decryption failed".

I have tried resolving this by adding the partnerPublicKey param and without, there is no change in the error. I have also used a 3rd party to decrypt the message, and it worked with the same private key. But on the PO channel it's not working. I have used ignoreNonPGPMessage{true} param that succeeded in consuming the message, but didn't decrypt it.

Can you please help me out with resolving this issue?

Error Screenshot


Module config

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi Saibal ,

I am facing the same issue . Could you please share the steps you took to solve this error.

Thanks & Regards,

Rushabh Kothari

0 Kudos

Hi,

I had the same issue. It was resolved by upgrading the PIB2BPGP component in PO to latest support pack level. As well as the PIB2BSFTP to same support pack level as PGP.

Thanks,

Jay

binod8
Active Participant
0 Kudos

Hi Saibal,

Hope PGP addons are in place in your system. You may check with below link:

  1. http:<PO System>:50000/nwa/sysinfo -> Components Info
  2. Search for *PGP* Under Name tab
Also check your JCE policy and allowed key size, please use the below link if yet not done. Make sure all the key sizes are allowed.

http://<pi host>:<port>/BC/VerifyJCE

For more details, you may refer the below:

https://blogs.sap.com/2017/04/11/sftp-adapter-with-fcc-and-pgp-encryptiondecryption/

Thanks,

Binod

binod8
Active Participant
0 Kudos

One more thing, what I would have done is changing the Module key from numeric to alphabet name.

binod8
Active Participant
0 Kudos

Hi Saibal,

I do not see any issue with your configuration.

Points that you may recheck:

1. The message has been encrypted with your correct Public key.

2. You are using correct Private key to decrypt the payload.

Thanks& Regards,

Binod

0 Kudos

Thanks Binod for the answer. I have checked both the public and private key. I have shared the public key to the 3rd party system for encryption and then used a 3rd party tool to decrypt the encrypted file with the private key I have and it worked.

The same private key is made available to the Po channel as well. However the decryption is not working on the channel.

I had also generated a new key pair and that still didn't work.

Happy to try anything else that might help me resolve this...