No secret key on 1 file

Steven Bonda sbonda at
Fri Aug 16 14:56:35 CEST 2013

Thanks for replying.

C:\Users\me>gpg2 --version
gpg (GnuPG) 2.0.20 (Gpg4win 2.1.1)
libgcrypt 1.5.2

C:\Users\me>Gpg2 -v --batch --passphrase pass -o c:\temp\temp.txt -d c:\
gpg: public key is 727A253D
gpg: encrypted with RSA key, ID 727A253D
gpg: decryption failed: No secret key


I am using the same keyring as PGP Desktop and I am able to decrypt the file
with that program.

Thanks for the help.
-- Steve

-----Original Message-----
From: Werner Koch [mailto:wk at] 
Sent: Friday, August 16, 2013 5:51 AM
To: Steven Bonda
Cc: gnupg-users at
Subject: Re: No secret key on 1 file

On Wed, 14 Aug 2013 22:30, sbonda at said:

> When I run the following command:
> Gpg2 -batch -passphrase pass -o c:\temp\temp.txt -d c:\temp\file.pgp

I assume you used 

  Gpg2 --batch --passphrase pass -o c:\temp\temp.txt -d c:\temp\file.pgp

That is two dashes for the long options.

--passphrase does not work with gpg2.  You will be asked by a pop-up Window
for the passphrase.  That requires that GnuPG has been fully installed.

What version are you using.  Did you used a Gpg4win installer?

If you are using the command line you may want to add the option 


to see more diagnostics.  If you are not using the latest gpg2 version it is
possible that the imported secret hast been protected using the IDEA
algorithms which - for patent reason was not support by older GnuPG
versions.  You need at least GnuPG 2.020 and Libgcrypt 1.5.2.  Running

  gpg2 --version

shows the the GnuPG and Libgcrypt version.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-users mailing list