gpg --gen-key : agent_genkey failed: Timeout

Jim Garrison jhg@jhmg.net
Fri Dec 2 19:41:53 GMT 2022


On 12/02/22 11:23, Jim Garrison via Cygwin wrote:
> Fully updated cygwin64 on Win10 Pro x64; cygcheck.out attached.
> 
> If I attempt this in a regular mintty session, it hangs forever (until
> killed with ^C). If I run it in a priviliged session (Run As
> Administrator) it gives the below timeout message after about 90
> seconds.  And yes, I did as suggested: moving the mouse, running
> chkdisk in a CMD box, etc.
> 
> ===================================
> $ gpg --gen-key
> Note: Use "gpg2 --full-generate-key" for a full featured key generation 
> dialog.
> 
> GnuPG needs to construct a user ID to identify your key.
> 
> Real name: Jim Garrison
> Email address: [redacted]
> You selected this USER-ID:
>      "Jim Garrison [redacted]"
> 
> Change (N)ame, (E)mail, or (O)kay/(Q)uit? O
> We need to generate a lot of random bytes. It is a good idea to perform
> some other action (type on the keyboard, move the mouse, utilize the
> disks) during the prime generation; this gives the random number
> generator a better chance to gain enough entropy.
> 
> gpg: agent_genkey failed: Timeout
> Key generation failed: Timeout
> ====================================

Running this on a Debian 10 system completes successfully in < 1 second.

-- 
Jim Garrison
jhg@acm.org



More information about the Cygwin mailing list