Why gpg 2.1.9 cannot export secret key without passphrase?

Dmitrii Tcvetkov demfloro at demfloro.ru
Fri Nov 27 10:39:30 CET 2015


On Tue, 24 Nov 2015 03:16:31 +0200
Andrey Utkin <andrey.od.utkin at gmail.com> wrote:

>  $ gpg --export-secret-keys
> (pops a Xorg dialog window from my console, driving me nuts)
> (i give empty passphrase)
> (it asks me whether i am sure I want no passphrase)
> (I say yes)
> gpg: key XXXXXXXX: error receiving key from agent: No passphrase
> given - skipped
> 
> Why is there such a _policy_?
> Maybe I am lost and I am using Windows which re-asks everything and
> still refuses to do what I want?
> 

Hello.

In this case passphrase is needed to decrypt private key from keyring.
Becuase of passphrase is not provided gpg-agent can't give gpg the
private key. 

Private key exports in cleartext.



More information about the Gnupg-users mailing list