Created on 07-19-2018 06:32 PM - edited 08-17-2019 11:35 PM
Hi,
We downloaded a file from our vendors AWS S3 which is PGP encrypted and i am trying to Decrypt it using EncryptContent processor. I set the Private Key and Passphase provided by them. But the processor shows a warning on the top left with Private Keyring file is invalid and could not be opened with the Password phrase provided.
am i doing something wrong.? Should i not include -----BEGIN PGP PRIVATE KEY BLOCK----- and -----END PGP PRIVATE KEY BLOCK-----.? i tried removing it and same thing happens.
Attached the screen shots.
Regards,
Sai
Created 07-20-2018 09:57 AM
@saikrishna i just tried your scenario, it works properly for me. what i did
1. encrypt a file using commandline using pgp encryption.
2. Added a flow as below
ListFile -> FetchFile->EncryptContent(for decryption) ->PutFile
I got decrypted content.
I got private key with below command, check if this helps. My private key was not readable.
gpg --export-secret-keys <id> >myprivatekey
i tried this command to get private key. This file path you have to add in private keyring file. Also you need to add passphrase.
Created 07-20-2018 02:18 PM
The private key and the passphrase was given to me by the 3rd party vendor.
Can I directly use them in the processor as in the screenshot or Should I use some commands to generate Private Keyring file.?
if so how to do that.?
Regards,
Sai
Created 07-20-2018 03:43 PM
@Saikrishna, as i see in code private keyring is property in EncryptContent processor is file. So may you please save the content in file and set path in that property.
Created 07-20-2018 03:45 PM
As i see in ur error snapshot... it states clearly that "...... file is invalid". I think if you pass as file then it will work.
Created 07-20-2018 03:45 PM
@ashok.kumar , I already tried copying the private key to a file and pointing to that , but see the same error. the processor still shows the same warning.
Created 07-20-2018 07:58 PM
Hi Experts,
any help here..How do we decrypt PGP encrypted file.?
I have Passphrase and Private Key..are those enough.?
Regards,
Sai
Created 08-01-2018 04:46 PM
Hi ,
just trying to get some attention from experts..
any idea on how to decrypt PGP file using Passphrase and secrect key (Private Key).
Regards,
Sai