Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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
Labels (2)
14 Replies
_AnonymousUser
Specialist III
Specialist III

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
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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

Hi @shong 

 

Appreciate if you can elaborate on the steps to achieve this.

Anonymous
Not applicable
Author

Hi All,

 

I was able to achieve this by using tsystem component and batch file. It is able to decrypt without the password prompt.