Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] PGP Decryption giving Secret key not found.

Hi All
i am having many .pgp file so that i created a job, which decrypt files using tGPGDecrypt component, but component gives error "secret key not found".
i thought i am supplying wrong Pass-phrase, so i went to the remote server(files location) and tried to executed a command line with same Pass-Phrase and it works well and decrypted all the files.
so can any one tell me what would be the problem ?
Labels (2)
1 Solution

Accepted Solutions
_AnonymousUser
Specialist III
Specialist III

i have set up the gpg and designed the tGPGDecrypt job well, but it is forcing for key key even i have offered complete term as well please recommend.
----------
http://www.oilpainting-shop.com

View solution in original post

10 Replies
Anonymous
Not applicable
Author

Hi
Which version of gpg do you use?
I'm afraid this is related to gpg command options which be executed in TOS java code.
In fact, I try to use gpg and get this same error.
Regards,
Pedro
Anonymous
Not applicable
Author

Hi
i am using gpg version 2.1.0 (2011-03-15) , so pedro, do we have any other way to decrypt .pgp file.
Anonymous
Not applicable
Author

Hi
Here is a screenshot of my job. And i can run it successfully.
My gpg version is gpg4win-2.1.0.
Regards,
Pedro
Anonymous
Not applicable
Author

Hi
i tried in the same way as you mention in screen shot. except i am having the .exe which is copied from the folder where gpg installed. because i can not installed gpg on my destination server where i want to perform this task.
Anonymous
Not applicable
Author

Hi
If you don't install gpg4win-2.1.0 and just copy gpg.exe, you will get error.
Regards,
Pedro
Anonymous
Not applicable
Author

Hi
i have installed the gpg and configured the tGPGDecrypt job well, but it is prompting for secret key even i have provided pass phrase as well please suggest.
Anonymous
Not applicable
Author

Hi
Please show us the error log.
We need to find out where you didn't configure it correctly.
Regards,
Pedro
Anonymous
Not applicable
Author

Hi
i configured the job as you mention above but, the passphrase window popups so simply clicked on OK button and then it again prompts for passphrase so clicked on canceled button.
the same passphrase i am using with tSystem component it is working fine and decrypting without error.
below is the error log.

gpg: Invalid passphrase ; please try again....
gpg: AllowSetForegroundWindow(5056) failed: Access is Denied.
gpg: cancelled by user
gpg: decryption failed: No secret key

please suggest.
_AnonymousUser
Specialist III
Specialist III

i have set up the gpg and designed the tGPGDecrypt job well, but it is forcing for key key even i have offered complete term as well please recommend.
----------
http://www.oilpainting-shop.com