Hi SAP Gurus,
We have this HR interface that needs to be encrypted so the data will not be visible within PI monitoring tools.
As solution, we are planning to use this PGP module to do the encryption and decryption.
However as much as possible, we are trying to avoid doing the encryption/decryption on partners end (as main purpose is just to hide the data within PI).
This is the scenario we have in mind:
File to File scenario
1) Partner sends the raw file
2) PI receives the raw file and encrypts it using PGP encryption module and public key installed in PI.
Sender Channel configuration (does the encryption):
ENC applyEncryption true
ENC applySignature false
ENC keyRootPath C:\usr\sap\PI\keys
ENC partnerPublicKey PIpub.asc
3) Before PI sends the file which was encrypted earlier in PI, PI decrypts the file using PGP decryption module in the Receiver Communication Channel.
Receiver Channel Configuration (does the decryption):
DEC keyRootPath C:\usr\sap\PI\keys
DEC ownPrivateKey PIprivate.asc
DEC partnerPublicKey PIpub.asc
DEC pwdOwnPrivateKey ***********
I tried to test above scenario but I'm getting below error in the receiver communication channel..
Error Exception caught by adapter framework: org.bouncycastle.openpgp.PGPPublicKeyRing found where PGPSecretKeyRing expected
Error Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: org.bouncycastle.openpgp.PGPException: org.bouncycastle.openpgp.PGPPublicKeyRing found where PGPSecretKeyRing expected
Could you please confirm if above mentioned scenario is possible?
And, what is the cause of the error?
Thanks