gpg 2.2.4: gpg :public key decryption failed: Timeout gpg: decryption failed: No secret key

arinit's Avatar


03 May, 2018 10:28 AM

could you help out on an error for gpg (GnuPG) 2.2.4 , libgcrypt 1.8.2

Thanks ,

error while decrypting :
"gpg: public key decryption failed: Timeout gpg: decryption failed: No secret key "

-- the key pair generated successfully( in an non interactive way from a scheduler) with the inputs Key-Type: RSA Key-Length: 2048 Subkey-Type: RSA Subkey-Length: 2048 Name-Real: xxxxxxxx Name-Comment: with passphrase Name-Email: [email blocked] Expire-Date: 0 Passphrase: zzzzzzzzzzzz ---gpg --list-secret keys shows the secret key , however in the error it says "No Secret Key"

-- encryption is successful for the belwo gpg -r [email blocked] -o encrypted_.gpg -e testfile.txt

--decryption using the below shows the error "- gpg: public key decryption failed: Timeout" gpg --passphrase "zzzzzzzzzz" -o out_file_new.txt -d encrypted_new.gpg

the same steps are successful interactive way
also for -c option encrypton and decryption are successful

  1. 1 Posted by angelicb555 on 03 May, 2018 06:13 PM

    angelicb555's Avatar

    I have the same problem lmk if you have resolved this please! thanks!

  2. 2 Posted by arinit on 04 May, 2018 06:23 AM

    arinit 's Avatar

    Hi ,
    I looked at the history in the discussion board and tried several ways as it looked the timeout is for the passphrase . ,with point 2) it gets sorted 1) echo passphrase |gpg --keyring --secret-keyring --batch --yes --passphrase-fd 0
    2) Use the loopback feature to let the agent ask the invoking program for the passphrase instead of pinentry by adding "--pinentry-mode loopback"
    3) Add default-cache-ttl 3600 in gpg-agent.conf in home/AppData/Roaming/gnupg

  3. Support Staff 3 Posted by Steve on 05 May, 2018 09:15 AM

    Steve's Avatar

    Hi arinit & angelicb555,

    thanks for your interest in GPGTools. GPG Suite runs on macOS, the mac operating system, only. The fact that we are very busy maintaining GPGTools as is with the small team size we currently have, expanding to other platforms is out of scope at the moment.

    This question is best asked at the gnupg users mailling list.

    All the best,

  4. Steve closed this discussion on 18 Jul, 2018 02:41 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac