X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B2EF3858C3A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1670010149;
	bh=z3kMgzHymfRR8mnI3mYeKFhd09vn5PxCiPK6qErA5Bo=;
	h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=KFTFafg+Eb8gB4zd8fBu9ksk/uGE8UGcYWCyAl0XwGhmjG4wHUzH1lL1yufMRueLO
	 dAm9+5AEpo5GlcXnLVdA/K2KfiSasxY0FGh8Hgy6iX3Zd9rApt6K/bkvfHbnKDR6bh
	 jVjBFbNaafb9C5p4/xWt8AAy/fQRg65i+ZzmVhuM=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CA9953858D20
Message-ID: <d9b6cb7d-ea14-44df-6053-f006afeb087a@jhmg.net>
Date: Fri, 2 Dec 2022 11:41:53 -0800
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
 Firefox/102.0 Thunderbird/102.5.0
Subject: Re: gpg --gen-key : agent_genkey failed: Timeout
Content-Language: en-US
To: cygwin@cygwin.com
References: <cf7bbc53-643b-1113-43c9-2d324adc652c@jhmg.net>
In-Reply-To: <cf7bbc53-643b-1113-43c9-2d324adc652c@jhmg.net>
X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, SPF_HELO_PASS,
 SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Jim Garrison via Cygwin <cygwin@cygwin.com>
Reply-To: jhg@acm.org
Cc: Jim Garrison <jhg@jhmg.net>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 2B2Jgr79024562

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


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

