I'm trying to use the SAP PGP-Module localejbs/PGPEncryption.
I generated public and private keys in some different ways but it does not work.
I also tried to use this How-To:
http://wiki.sdn.sap.com/wiki/display/XI/Generating+ASCII+Armored+PGP+Key+Pairs
The audit log always shows this:
06.03.2013 12:48:48.360 | Informationen | PGP Encryption Module: Reading public key at /usr/sap/E96/sst/ftp-test/bin/pubring.pkr |
06.03.2013 12:48:48.364 | Informationen | PGP Encryption Module: Reading private key at /usr/sap/E96/sst/ftp-test/bin/secring.skr |
06.03.2013 12:48:48.371 | Fehler | MP: exception caught with cause org.bouncycastle.openpgp.PGPException: Exception creating cipher |
06.03.2013 12:48:48.371 | Fehler | PGP Encryption Module: Could not extract private key (org.bouncycastle.openpgp.PGPException: Exception creating cipher) |
06.03.2013 12:48:48.379 | Fehler | Ausnahme aufgetreten beim Adapter-Framework: Exception creating cipher |
My configuration:
PGP | applyCompression | none |
PGP | applyEncryption | true |
PGP | applySignature | true |
PGP | asciiArmored | false |
PGP | dynamicFileName | true |
PGP | dynamicNamespace | true |
PGP | encryptionAlgo | AES_128 |
PGP | format | binary |
PGP | keyRootPath | /usr/sap/E96/sst/ftp-test/bin/ |
PGP | ownPrivateKey | secring.skr |
PGP | partnerPublicKey | pubring.pkr |
PGP | pwdOwnPrivateKey | **** |
PGP | signingAlgo | RIPEMD160 |
Note: I also used ASCII-keys - no difference.
1. Any ideas were the problem could be?
2. Do I have to use a special signing or encryption Algo???
3. I also wonder which "user-id" ist used for encrypting, because there can be more than one key in a key ring. But there is no parameter for specifying the receiver or sender.