on 03-28-2016 4:49 PM
Hi Guys,
I am currently testing an SFTP interface using the 'PGPEncryption' adapter module.
I have configured the parameters as seen on the below screenshot. Let me know if it is not correct.
The keys I am using are generated using a PuTTYgen.
When I trigger a file going to to the SFTP server, I am encountering the following error.
Message processing failed. Cause: com.sap.aii.adapter.pgp.ejb.api.util.InvalidConfigurationException: No public key with encryption capability found in '/temp/public_test.pub'.Can't find encryption key in key ring.
Could you help me out with this? Did I missed a step?
Regards,
Neil
Hi Neil,
The keys that you are using are open ssh keys .These keys are used to authenticate to a SFTP server. They cannot be used for PGP encryption (Atleast thats what I know). Please generate a PGP encryption key with .asc or .gpg format ( You can use GnuPg tool to achieve this easier).
Since this is a receiver channel, you need to get the Encryption public key from the receiver.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neil ,
I faced the same issue long back and was due to either passphrase or keys provided where incorrect.
Request you to please check correct credentials .
Also you can debug your issue by using below tool to encryt or decryt the message
link: https://www.igolder.com/pgp/decryption/ .
Let me know if this was helpful or you still require some details.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neil,
The public key you are using is not a PGP key. If you want to confirm it whether it is indeed encrypting data, check it out using some test tool (like iGolden website). There type some phrase for encryption like Hello, then paste your public key and test it. I doubt if it would work correctly.
You can also use the mentioned website (for testing purpose) to generate a test pgp key and then put it in the pi folder and then try encryption
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neil,
If you generate your keys using the following method it should work out for you. The module expects the keys to be in a particular format which you can generate if you follow the below blog:
Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.