Skip to Content

SFTP Receiver channel - PGPSecretKeyRing expected

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


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 13, 2015 at 03:57 PM

    It looks you are missing secretKeyRing parameter in the module.

    Refer the blog - PGP Encryption and Decryption process in PI

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 13, 2015 at 04:51 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • avatar image
    Former Member
    Jan 14, 2015 at 09:12 AM

    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

    Add comment
    10|10000 characters needed characters exceeded