cancel
Showing results for 
Search instead for 
Did you mean: 

PGP Issue...Need Advice

Former Member
0 Kudos

Hi Folks,

We need your help with an issue with Decryption of files using PGP module.

We are trying to decrypt a file using a sender SFTP Channel with a PGP Decryption module but we get an error:

Error while sending message: Cannot send message to module processor com.sap.aii.af.lib.mp.module.ModuleException: PGPDecryption Module:  

Error: org.bouncycastle.openpgp.PGPException: Exception creating cipher

We have checked the JCE policy files and we have unlimited policy installed. Also we have checked the BouncyCastle jar file version and it is version 1.46.

We are able to decrypt the file manually. Then if we encrypt the same file manually and process through PI, we are able to process it successfully. We checked with the third party who are sending the file and they seem to do nothing different in terms of encryption.

Would appreciate any suggestions or feedback on this.

Thank you.

Baljit

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member192892
Active Contributor
0 Kudos

Hi Baljit,

Can you in a dummy message mapping, write an UDF with the below code, test it and tell what the log is? Please import javax.security.*.


getTrace().addWarning(""+Cipher.getMaxAllowedKeyLength("AES"));

return"";

If the output is 128 then the unlimited jce is not installed properly.

Regards

Varun