cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP Receiver channel - PGPSecretKeyRing expected

0 Kudos

Hi,


We are trying to send files to an external SFTP server. The requirement is to sign the files using the PGP module before sending it and encryption is optional


Below are the parameters I configured in the PGP module


applyEncryption - false

applySignature - true

signingAlgo- MD5

partnerPublicKey - xxxx.asc (This is the public key we got from the SFTP server side)

ownPrivateKey - xxxxx.ppk (We generated this key using Putty and gave a pass phase)

pwdOwnPrivateKey - xxx (Used the above pass phrase here)


Both the Key files are copied into the default folder usr/sap/<System ID>/<Instance ID>/sec.


When we tested it we got the below error message


"Exception caught by adapter framework: Error reading private keyring. org.bouncycastle.openpgp.PGPPublicKeyRing found where PGPSecretKeyRing expected"



Could you please help me on this?. Let me know if I missed anything in the module config


Thanks,

Harsh


Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

It looks you are missing secretKeyRing parameter in the module.

Refer the blog -

0 Kudos

Thanks Ganesh. But we are not using the AEdaptive module for PGP.

I configured using the localejbs/PGPEncryption module

Configuring the Encryption PGP Module - SAP NetWeaver Process Integration, secure connectivity add-o...

I dont see the need of SecretKeyRing parameter in the above tutorial.

Also, do I need to configure the localejbs/PGPDecryption  module when sending files to the vendor?

Thanks,

Harsh

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Harsh,

You can maintain them in the same folder but are these having different names? Also try maintaining the path and key name parameter in the channel. That should ideally resolve the ambiguity the adapter is facing

Regards,

Sriram

Former Member
0 Kudos

Hi Harsh,

By the look of it, seems like the path u have maintained for the secret key(private key) contains the public key. Please ensure you have the Basis folks maintain the correct key in the path u r referring to in the channel. Also ensure the names of the keys are correct at both places.

Regards,

Sriram

0 Kudos

Thanks Sriram.

We are putting the files in the default location. We did not configure the keyRootPath parameter since it will take default if its not mentioned

Do you mean that Secret Key(Private Key) and Public Key should not be maintained in the same folder? If so, where do we maintain the public key then?

Thanks,

Harsh