cancel
Showing results for 
Search instead for 
Did you mean: 

PGP Standard Module Encryption- Partner unable to decrypt the file

Hemant_Malvi
Explorer
0 Kudos

Hello Experts,

I am working on File to SFTP scenario using Standard PGP module for encrypting the data.

I am using parameters (please see screenshot) in receiver SFTP channel but partner is not able to decrypt the file using their private key.

Strange thing is they are not even getting any error. Also, partner is not sure of encryption algorithm they are following.

Let me know does it really matter with respect to encryption algorithm which we are using in parameters?

I also tried maintaining our private key and password in parameters but still it is not working

Tool use by partner : PGP 6.5.8 for Windows 9x/NT/2000 for decrypting the file.


Below are the parameters tried from my end and none of them is working.


Regards,

Hemant Malvi

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member182455
Active Contributor
0 Kudos

Hi Hemant,

please check and follow the below steps.

Regards

Srinivas

GauravKant
Contributor
0 Kudos

Hi Hemant,

Please cross check the partner public key hex value and partner private key hex value. Also try removing DACB and give a try once again.

Also check with partner whether they are expecting sign also on file. If yes, Kindly maintain applySignature=true.

Regards,

Gaurav

vicky20691
Active Contributor
0 Kudos

Hi Hemant,

I will give just few points , try that and let me know it worked or not

1. Remove the keyRootPath parameter , but do give ownPrivateKey and Password + add the parameter applySignature = true

2. If the above doesn't work remove dynamic attribute change bean and then process your file once with applySignature=true and once with applySignature=false

Regards,

Vikas

Hemant_Malvi
Explorer
0 Kudos

Hello Vikas,

If I remove keyRootPath parameter, where I will maintain partner's public key?

Regards,

Hemant

vicky20691
Active Contributor
0 Kudos

Hi Hemant,

that parameter is needed only if you place keys at some random folder and not in sec folder.

SAP PI by default looks for sec folder for keys

Regards,

Vikas

manoj_khavatkopp
Active Contributor
0 Kudos

Hemant,

If you are using just encryption thne Screenshot 1 and 2 look good , if you are using sign+encryption then screenshot 3 is fine but in this case make sure you have shared your public key with the third party.

And yes the encryption algo should be same for decryption/encryption , and also check for other parameters like compression / armoring.

br,

Manoj

former_member186851
Active Contributor
0 Kudos

Hell Hemant,

I believe algorithm could be a problem.

Did you get the file from partner and check whether it is decrypted?.