SAP PO PGP Decryption
I am struck in this issue on PGP decryption.
I am trying to use PGP decryption in my sender ftp/ file adapter.
I initially tried to test in sandbox and generated the public/ private key pair using this below URL and created two .txt files for private and public and then lend the public key to the partner and SAP PO was able to decrypt the encrypted message using the private key.
Now when I tried to generate an actual PGP Public/ Private key using PGP Desktop software, I get two .asc files, I send the public key to my partner and now when I try to use the private key( .asc file contains both public and private key) I am getting the error: Error: java.security.InvalidKeyException: Illegal key size
IS the certificate bad or we need to have any config issues on the Java libraries.
Hello Ravijeet ,
the problem seems to be with the limited JCE policy that is provided by SAP.
As a solution pls update the JCE policy as per the link below and then try.