delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/07/24/01:06:58

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31A3B389EC25
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1627103215;
bh=jEfIkqWupU3t0wzypYLisYwodiKmGyVSLsIohffaDOU=;
h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=ok4uNj5cqqBw7Sva+gRXrk3ULg97ANX0chKC04jTKOGQPznAnXWlzv5f1yOnh4ahj
2Y9/GVfDpFNqHAsiV0ez+mrJGgukp2Zz5K4+VMQSSz61EXNd00J3hangJuWoCA8NWE
XGN2dIY2gYmolLaQrwgV1rtc6bxZRYum+mBKq/EA=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4C1213857431
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=NDHuDQFclXDVLTK3wqZI/VDxZm1OL2Gfi/Y3bqZENj/L6xMIpO5TK8T8sb1C3jvuk0e/rLCFGHyX8buzzWjh7aLrhNeNcKyW310pNny012HrcAWYoOYAmsN3Pbw7nB5Z535wHRdcH/AASw+FHRKbF4HsXEQMQeU4gcMm1nEPQJN7Hiv1WQfBF/P7EAsGjSjMJsIw+kq7qHo67UTD7HbbmSzFPAZh3BUhivLYUwMCJTMwvyfW1vh6knGwVBNbbB82hDsHVpmktTjgGacFAbATOhnQccKyE3Q9jTPQhV/mMohe+jJebOkCevvNkryLkXwAt4rRjqBfEIyQlLQ9p5U2KA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=VFhwOB8XNkWz17YRTJTWtuK1qcRvygOBB5+sKd1AAqw=;
b=Y0rRE4Fb5PG0t+y/RntluiSqK6TyvwCueX6HUvOEi5UHkC/6z5XXHkfoBatR4iDT+TUQu/rG70MOAsB74lybzG1C6RFPq/N4s2xCU9GtTYcLPRIca9fBSZskj8q0fWVn6gDjILt/GR2TcWApynkj7rrcfMt2+1CqvBG3Qce2dEOsiCR+8wBfpm2W9EcNdoR8nuZawErw2dGHXldSIwJvMiQi+iKXAyxoDeIKZ3CX9WxV7e+vuDdsfdLUgC4QIm/PabWMjHI/XTep20C3cojRIEQxfoUe2oeB4CbcyI5Dxq+dDhnYBvRfaAx9uGo4hNm77pskGICKeVFFKl9vZopIsQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
dkim=none; arc=none
Date: Sat, 24 Jul 2021 14:06:17 +0900
To: cygwin AT cygwin DOT com
Subject: about pinentry-tty (gpg-agent)
Message-ID: <TYZPR03MB5678AE6125994EA698DCC275B5E69@TYZPR03MB5678.apcprd03.prod.outlook.com>
X-Mailer: Becky! ver. 2.75.03 [ja]
X-TMN: [44upzcC2tN+70Riu6F/b7EvXmuKd8GVAHnHK5MBeM/o=]
X-ClientProxiedBy: TYAPR01CA0158.jpnprd01.prod.outlook.com
(2603:1096:404:7e::26) To TYZPR03MB5678.apcprd03.prod.outlook.com
(2603:1096:400:66::9)
X-Microsoft-Original-Message-ID: <20210724140615 DOT 188B DOT A648F6D9 AT outlook DOT jp>
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: f1bafc67-8128-4e8f-ff49-08d94e60c4c7
X-MS-TrafficTypeDiagnostic: TYZPR03MB5968:
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: bSzsbBGQKpCEcZpama4ijpnJO8uA1HJ3u6KKzK4iT7GouJ6m1GLwr69cPKv5oWvV2ifUwSeqDEuk9HnyroKbdS009Qh18q3DseMsxKDtlCn+TsmyhcwU1TA/b32JEqeIazYangcmdqp0SuEW7FYCJ/sTM0eum7V4pXhvDqrfeIMRyqzkndtlnUHsWQ5k4IwsgAtuF5pFcHaFWJu1OP2UfzyE1PkXz8oiRo161I/XMBlajtEbmSVOnPWh4/g63F6WFsXh3d3GcyLQyGgB/Ec9f3ix9ODjUVtCtabMstPhvvzp9NasGuvxlkURp+qoIUFPMMRKxQQanWveC6vQOosMYYNkPz8+68DXUsrCsEg9luOy8pQh6ofZFLnbsSeDuJRGnoM8KLHq6sVrdLU9qk0CEmy6J6uZt5OaEpqNr5vlVQZu/VcfXrvMymSeycnLrTyN
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: Zx4kn9XY+UsdCE/sHvaMkm12H1fh0owEw/83a5rzDq0DWcJgABpCBADSyd0VF1C25ix7kal0RkS+GQ+qgix73f8hGpN2xCONpsPm1BecnwKdkjaRj+Gmvk+bfDKjO0i5wCay/t7+lK3Hxrcwi1sh2Q==
X-OriginatorOrg: sct-15-20-3174-8-msonline-outlook-792b7.templateTenant
X-MS-Exchange-CrossTenant-Network-Message-Id: f1bafc67-8128-4e8f-ff49-08d94e60c4c7
X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB5678.apcprd03.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2021 05:06:17.7791 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR03MB5968
X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,
FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KAM_DMARC_STATUS,
MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,
SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT 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 AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Ken SATO via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Ken SATO <ken DOT 294946 AT outlook DOT jp>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Hello everyone,

I tried using pinentry-tty to enter the passphrase for the gpg2 command,
but it ended with an error without waiting for the passphrase.

It's like this.
---8X----+---8X----+---8X----+---8X----+---8X----+---8X----+---8X----+
$ gpg2 -o AAA -d AAA.gpg
Please enter the passphrase to unlock the OpenPGP secret key:
"XXXXX YYYYY <xxxxxyyyyy AT mail DOT domain>"
4096-bit RSA key, ID 0xAABBCCDDEEFFGGHH,
created 2021-06-15 (main key ID 0xAABBCCDDEEFFGGHH).

Passphrase:
gpg: encrypted with 4096-bit RSA key, ID 0xAABBCCDDEEFFGGHH, created 2021-06-15
      "XXXXX YYYYY <xxxxxyyyyy AT mail DOT domain>"
gpg: public key decryption failed: Operation cancelled
gpg: decryption failed: No secret key
---8X----+---8X----+---8X----+---8X----+---8X----+---8X----+---8X----+

# I made pinentry-tty from pinentry-1.0.0-2-src.tar.xz and the
development library it requires. They were obtained from the Cygwin
download site.

# Also, I specified that pinentry-tty in the pinentry-program option of
the ~/.gnupg/gpg-agent.conf file.

As a test, I quit gpg-agent ($ gpgconf --kill gpg-agent) and started it
as follows. Next, when I executed the same gpg2 command as above, I was
able to enter the passphrase and decrypt it.

$ (trap '' SIGTTOU SIGTTIN; gpg-connect-agent /bye)

I'm not sure why the pinentry module doesn't include pinentry-tty, but
it seems to work by chance. Is it okay to ignore SIGTTOU and SIGTTIN?

Thank you.


-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019