One Star

GPG decrypt

Hey guys
I am using tGPGDecrypt to decrypt certain files ecrypted with a PGP key. But it pops up a pinentry window to enter the passphrase for each file. So its of no use to enter the passphrase again and again for so many files.
Do you know that if I were to use a tSystem component then how can I write a command line function to pass the passphrase automatically? Or how can I escape entering passphrase again and again in tGPGDecrypt?
Thanks,
Nitin
12 REPLIES
Community Manager

Re: GPG decrypt

Hello Nitin
It will pops up a pinentry window to enter the passphrase? What i see is to enter the passphrase in the 'passphrase' directly.
Can you upload a screenshot of your windows?
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: GPG decrypt

Hi Shong
Please see the screenshots of my job and suggest something...
I am in urgent need to sort it out..
Thanks,
Community Manager

Re: GPG decrypt

Hello
why don't you set the password in the passphrase field? Will it pop up this dialog even though you set the password in the passphrase field?

Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: GPG decrypt

yes.. thats the problem... I am specifying the password in the passphrase field.. but still it pops up this pinentry window... I want to escape it so that i can automate the decryption of many files..
Community Manager

Re: GPG decrypt

Hello
I think there should be a place where you can set if pop up a dialog in GPG configuation file. I remembered I use it before, but it did't pop up a dialog.
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: GPG decrypt

Hi Shong
Can you tell me where did you set up that thing if I dont want the dialog to pop up? Is this a setting in Talend?
Thanks,
Community Manager

Re: GPG decrypt

Hello
No, it is not set in talend. Maybe it is set in the GPG, I used to test GPG4win
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
Five Stars

Re: GPG decrypt

Hi Shong
I am facing proble and i have posted this before, please suggest how to handle pop up windows for passphrase
One Star

Re: GPG decrypt

Hi,
I am facing the same issue, please provide the solution if anyone know.
One Star

Re: GPG decrypt

I ran into the same issue with TOS 5.1.2 on running on Redhat 2.6.32-220.el6.x86_64.
Here's the fix:
1) In your user's home directory, you should have a ".gnupg" directory, i.e. ~/.gnupg
2) Look for ~/.gnupg/gpg.conf. If it's not there create the file with a text editor. In my case, the conf file was not present.
3) Add the parameter "batch" to the conf file.
4) Rerun your Talend job....the password text box should be suppressed.
See 'man gpg' for more info.
Jeff
Community Manager

Re: GPG decrypt

I ran into the same issue with TOS 5.1.2 on running on Redhat 2.6.32-220.el6.x86_64.
Here's the fix:
1) In your user's home directory, you should have a ".gnupg" directory, i.e. ~/.gnupg
2) Look for ~/.gnupg/gpg.conf. If it's not there create the file with a text editor. In my case, the conf file was not present.
3) Add the parameter "batch" to the conf file.
4) Rerun your Talend job....the password text box should be suppressed.
See 'man gpg' for more info.
Jeff

Cool, thank you Jeff, thanks for sharing your solution!
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: GPG decrypt

In case of windows, where can i find the configuration file and make it edit, because i also ran into same problem.
Regards.