[Gpg4win-users-en] Unable to Preset Passphrase in GPG Agent

robcoscia at comcast.net robcoscia at comcast.net
Mon Apr 20 21:07:14 CEST 2015



HI Bernhard, 

  

Thank you for replying to my message. 

  

I did try some of your suggestions.  I was able to successfully decrypt a file manually using the command line with pinentry. But I noticed that there was an error when the agent tried 

to write the passphrase to the cache. See the log below: 

  

gpg-agent[988]: handler 0x27a0 for fd 256 started 

gpg-agent[988]: chan_00000100 -> OK Pleased to meet you 

gpg-agent[988]: chan_00000100 <- RESET 

gpg-agent[988]: chan_00000100 -> OK 

gpg-agent[988]: chan_00000100 <- OPTION allow-pinentry-notify 

gpg-agent[988]: chan_00000100 -> OK 

gpg-agent[988]: chan_00000100 <- AGENT_ID 

gpg-agent[988]: chan_00000100 -> ERR 67109139 Unknown IPC command <GPG Agent> 

gpg-agent[988]: chan_00000100 <- GETINFO cmd_has_option GET_PASSPHRASE repeat 

gpg-agent[988]: chan_00000100 -> OK 

gpg-agent[988]: chan_00000100 <- GET_PASSPHRASE --data --repeat=0 -- 848526CF3A 

5E0E531843E49F4FFAFB4D4125754 X X Please+enter+the+passphrase+to+unlock+the+sec 

et+key+for+the+OpenPGP+certificate:%0A%22Bright+Horizons+<stephanie.gill at bright 

orizons.com>%22%0A2048-bit+RSA+key,+ID+D4125754,%0Acreated+2006-07-27+(main+key 

ID+E4C535E4).%0A 

gpg-agent[988]: DBG: agent_get_cache `848526CF3A95E0E531843E49F4FFAFB4D4125754' 

.. 

gpg-agent[988]: DBG: ... miss 

gpg-agent[988]: starting a new PIN Entry 

gpg-agent[988]: chan_0000010C <- OK Your orders please 

gpg-agent[988]: DBG: connection to PIN entry established 

gpg-agent[988]: chan_0000010C -> OPTION grab 

gpg-agent[988]: chan_0000010C <- OK 

gpg-agent[988]: chan_0000010C -> OPTION default-ok=_OK 

gpg-agent[988]: chan_0000010C <- OK 

gpg-agent[988]: chan_0000010C -> OPTION default-cancel=_Cancel 

gpg-agent[988]: chan_0000010C <- OK 

gpg-agent[988]: chan_0000010C -> OPTION default-prompt=PIN: 

gpg-agent[988]: chan_0000010C <- OK 

gpg-agent[988]: chan_0000010C -> OPTION touch-file=C:\Users\30005004\AppData\Ro 

ming\gnupg\S.gpg-agent 

gpg-agent[988]: chan_0000010C <- OK 

gpg-agent[988]: chan_0000010C -> GETINFO pid 

gpg-agent[988]: chan_0000010C <- D 7436 

gpg-agent[988]: chan_0000010C <- OK 

gpg-agent[988]: chan_00000100 -> INQUIRE PINENTRY_LAUNCHED 7436 

gpg-agent[988]: chan_00000100 <- END 

gpg-agent[988]: chan_0000010C -> SETDESC Please enter the passphrase to unlock 

he secret key for the OpenPGP certificate:%0A%22Bright Horizons <stephanie.gill 

brighthorizons.com>%22%0A2048-bit RSA key, ID D4125754,%0Acreated 2006-07-27 (m 

in key ID E4C535E4).%0A 

gpg-agent[988]: chan_0000010C <- OK 

gpg-agent[988]: chan_0000010C -> SETPROMPT Passphrase 

gpg-agent[988]: chan_0000010C <- OK 

gpg-agent[988]: chan_0000010C -> [[Confidential data not shown]] 

gpg-agent[988]: handler 0x3398 for fd 276 started 

gpg-agent[988]: chan_00000114 -> OK Pleased to meet you 

gpg-agent[988]: chan_00000128 <- OK Pleased to meet you 

gpg-agent[988]: chan_00000128 -> GETINFO pid 

gpg-agent[988]: chan_00000114 <- GETINFO pid 

gpg-agent[988]: chan_00000114 -> D 988 

gpg-agent[988]: chan_00000114 -> OK 

gpg-agent[988]: chan_00000128 <- D 988 

gpg-agent[988]: chan_00000128 <- OK 

gpg-agent[988]: chan_00000128 -> BYE 

gpg-agent[988]: chan_00000114 <- BYE 

gpg-agent[988]: chan_00000114 -> OK closing connection 

gpg-agent[988]: handler 0x3398 for fd 276 terminated 

gpg-agent[988]: chan_0000010C <- [[Confidential data not shown]] 

gpg-agent[988]: chan_0000010C <- [[Confidential data not shown]] 

gpg-agent[988]: chan_0000010C -> BYE 

gpg-agent[988]: DBG: agent_put_cache `848526CF3A95E0E531843E49F4FFAFB4D4125754' 

requested ttl=0 mode=3 

gpg-agent[988]: chan_00000100 -> [[Confidential data not shown]] 

gpg-agent[988]: chan_00000100 -> [[Confidential data not shown]] 

gpg-agent[988]: chan_00000100 <- [error: Input/output error] 

gpg-agent[988]: Assuan processing failed: Input/output error 

gpg-agent[988]: handler 0x27a0 for fd 256 terminated 

  

  

I also installed the latest version of GPG4Win version 2.2.4 but I still get the same error as above. 

  

Thanks, 

  

Robert Coscia 

  

-----Original Message----- 
From: Gpg4win-users-en [mailto:gpg4win-users-en-bounces at wald.intevation.org] On Behalf Of Bernhard Reiter 
Sent: Tuesday, April 14, 2015 3:27 AM 
To: gpg4win-users-en at wald.intevation.org 
Subject: Re: [Gpg4win-users-en] Unable to Preset Passphrase in GPG Agent 

  

Robert, 

  

On Friday 03 April 2015 at 22:34:35, Robert Coscia wrote: 

> Unable to Preset Passphrase in GPG Agent 

  

thanks for your report! 

  

> My use case is to run an application that will download an encrypted 

> file from a sftp server onto a local server and decrypt it using gpg2 

> command line.  I would like to preset the password so that that the 

> process won't require user interaction. 

  

Note that another solution could be to use an empty passphrase. 

  

> I have installed GPG4Win version 2.2.3 on my computer. I generated a 

> new key set using Kleopatra application and also imported a secure and 

> public key from a certificate. 

  

Two things you could check 

* Does it work in the regular way, e.g. manuel decryption via the command line and pinentry? 

* Does the current version 2.2.4 make a difference? 

  

Best, 

Bernhard 

ps.: Flattr Gpg4win at https://urldefense.proofpoint.com/v2/url?u=https-3A__flattr.com_thing_2053326&d=AwIFaQ&c=zrNen3Ix2si794FOuA5Ds9OcPV2AOK6NGUOdcY6WTD4&r=eimgRjx_8__6GHA0awJUUj2uteGWasnlQe5_il5EX8Q&m=9tq2-rKJ9GFOg4E2auCNGtrXVHeEBGhbvBdMoMRHF_A&s=Wxar17G1IXknMQjASX9qcOUpsvgEvpZujDhDjQH1Ujg&e = , 

     if you appreciate this answer and my work within the Gpg4win Initiative. 

  

-- 

www.intevation.de/~bernhard (CEO)   www.fsfe.org (Founding GA Member) 

Intevation GmbH, Osnabrück, Germany; Amtsgericht Osnabrück, HRB 18998 Owned and run by Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wald.intevation.org/pipermail/gpg4win-users-en/attachments/20150420/2c80b6f2/attachment.html>


More information about the Gpg4win-users-en mailing list