Data Warehousing and Data integration

"Decrypt" file with passphrase

More
8 months 1 week ago #25867 by tahmad
I have to create process to decrypt a file with passphrase. i need help 
Kleopatra is install but getting below error 

gpg --batch --interactive --yes --output \\xgscanfs01\CanadianTire\sftp_inbound_PROD\test.pdf --passphrase "Passphrase" --decrypt \\xgscanfs01\CanadianTire\sftp_inbound_PROD\test.pgp
Gpg4Win: "Decrypt" has failed
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago - 8 months 1 week ago #25868 by admin
Hi Tahmad.

Does it work when you run it from the command line?

I can see that you are using network share.
It might fail due to the access rights issues.

Please try not using shares. Eg copy everything to your own computer.

If nothing helps enable debugging as described here.

www.etl-tools.com/wiki/knowledgebase/issues/gpg-issues/

Please keep us posting on your progress 
 

Mike
ETL Architect
Last edit: 8 months 1 week ago by admin.

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago #25869 by tahmad
Please advise how i can configure Kleopatra for decrypt with Passphrase

Encrypted File Static C:\Projects\CPA\test.pgp
Decrypted File Static C:\Projects\CPA\sampletest.pdf
Passphrase Static ********************

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago - 8 months 1 week ago #25870 by tahmad
025-12-08 09:40:40 gpg[7792] enabled debug flags: memstat trust extprog
2025-12-08 09:40:40 gpg[7792] enabled compatibility flags:
2025-12-08 09:40:40 gpg[7792] AES256.CFB encrypted data
2025-12-08 09:40:41 gpg[7792] encrypted with 1 passphrase
2025-12-08 09:40:41 gpg[7792] decryption failed: Bad session key
2025-12-08 09:40:41 gpg[7792] keydb: handles=0 locks=0 parse=0 get=0
2025-12-08 09:40:41 gpg[7792]        build=0 update=0 insert=0 delete=0
2025-12-08 09:40:41 gpg[7792]        reset=0 found=0 not=0 cache=0 not=0
2025-12-08 09:40:41 gpg[7792] kid_not_found_cache: count=0 peak=0 flushes=0
2025-12-08 09:40:41 gpg[7792] sig_cache: total=0 cached=0 good=0 bad=0
2025-12-08 09:40:41 gpg[7792] objcache: keys=0/0/0 chains=0,0..0 buckets=0/0 attic=0
2025-12-08 09:40:41 gpg[7792] objcache: uids=0/0/0 chains=0,0..0 buckets=0/0
2025-12-08 09:40:41 gpg[7792] random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
              outmix=0 getlvl1=0/0 getlvl2=0/0
2025-12-08 09:40:41 gpg[7792] rndjent stat: collector=0x00000000 calls=0 bytes=0
2025-12-08 09:40:41 gpg[7792] secmem usage: 64/32768 bytes in 2 blocks
2025-12-08 09:42:18 gpg[7292] enabled debug flags: memstat trust extprog
2025-12-08 09:42:18 gpg[7292] enabled compatibility flags:
2025-12-08 09:42:18 gpg[7292] AES256.CFB encrypted data
2025-12-08 09:42:19 gpg[7292] encrypted with 1 passphrase
2025-12-08 09:42:19 gpg[7292] decryption failed: Bad session key
2025-12-08 09:42:19 gpg[7292] keydb: handles=0 locks=0 parse=0 get=0
2025-12-08 09:42:19 gpg[7292]        build=0 update=0 insert=0 delete=0
2025-12-08 09:42:19 gpg[7292]        reset=0 found=0 not=0 cache=0 not=0
2025-12-08 09:42:19 gpg[7292] kid_not_found_cache: count=0 peak=0 flushes=0
2025-12-08 09:42:19 gpg[7292] sig_cache: total=0 cached=0 good=0 bad=0
2025-12-08 09:42:19 gpg[7292] objcache: keys=0/0/0 chains=0,0..0 buckets=0/0 attic=0
2025-12-08 09:42:19 gpg[7292] objcache: uids=0/0/0 chains=0,0..0 buckets=0/0
2025-12-08 09:42:19 gpg[7292] random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
              outmix=0 getlvl1=0/0 getlvl2=0/0
2025-12-08 09:42:19 gpg[7292] rndjent stat: collector=0x00000000 calls=0 bytes=0
2025-12-08 09:42:19 gpg[7292] secmem usage: 64/32768 bytes in 2 blocks
2025-12-08 09:48:46 gpg[7144] enabled debug flags: memstat trust extprog
2025-12-08 09:48:46 gpg[7144] enabled compatibility flags:
2025-12-08 09:48:46 gpg[7144] WARNING: no command supplied.  Trying to guess what you mean ...
Last edit: 8 months 1 week ago by tahmad.

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago #25871 by admin
Can you try the following please

open Command Prompt (not PowerShell, to keep syntax simple):

run

gpg --output "C:\Temp\test.pdf" --decrypt "\\xgscanfs01\CanadianTire\sftp_inbound_PROD\test.pgp"

You’ll be prompted for the passphrase in a GUI box.

Enter passphrase and let us know if it works or not

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago - 8 months 1 week ago #25872 by tahmad
yes this command  gpg --output "C:\Temp\test.pdf" --decrypt "\\xgscanfs01\CanadianTire\sftp_inbound_PROD\test.pgp" works  fine
Last edit: 8 months 1 week ago by tahmad.
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save