Problems with gpg-agent

Richard Hamilton hamilric at us.ibm.com
Wed Nov 5 15:05:44 CET 2008


Running gnupg 2.0.7 on AIX 5.3 using pinentry-curses 0.7.3, batch 
operations work all day long but interactive gpg operations do not. The 
problem looks a lot like the tty problem described in multiple posts but I 
can’t see the problem in this configuration. The gpg-agent is running:
 
$ echo $GPG_AGENT_INFO
/tmp/gpg-evdBeO/S.gpg-agent:1314974:1
$ ps -ef | grep 1314974
     pgp 1314974       1   0 18:48:00      -  0:00 gpg-agent --daemon
 
The tty device is set:
 
$ echo $GPG_TTY
/dev/pts/4
 
The agent configuration is:
 
pinentry-program /opt/TWWfsw/bin/pinentry
no-grab
default-cache-ttl 1800
ignore-cache-for-signing
 
Tried several options in the agent configuration. In the the gpg.conf have 
the option use-agent. I cannot get interactive operations to work. An 
example (with agent debug set to guru):
 
/apps/gisbt/programs $ gpg --edit-key 0xDDC90A19
pub  1024R/DDC90A19  created: 2005-06-07  expires: never       usage: SCEA
                     trust: never         validity: unknown
[ unknown] (1). CCEGASECPTEST
 
Command> sign
 
pub  1024R/DDC90A19  created: 2005-06-07  expires: never       usage: SCEA
                     trust: never         validity: unknown
 Primary key fingerprint: B4 E2 C2 AC 6E 8B 00 0E  8E 55 A2 F5 71 72 71 50
     CCEGASECPTEST
Are you sure that you want to sign this key with your
key "WILLIAMS <wisgisb at williams.com>" (3CDC9091)
Really sign? (y/N) y
 
You need a passphrase to unlock the secret key for
user: "WILLIAMS <wisgisb at williams.com>"
1024-bit DSA key, ID 3CDC9091, created 2002-11-13
 
gpg-agent[2203674]: handler 0x2001ffe8 for fd 6 started
gpg-agent[2203674.6] DBG: -> OK Pleased to meet you
gpg-agent[2203674.6] DBG: <- RESET
gpg-agent[2203674.6] DBG: -> OK
gpg-agent[2203674.6] DBG: <- OPTION ttyname=/dev/pts/4
gpg-agent[2203674.6] DBG: -> OK
gpg-agent[2203674.6] DBG: <- OPTION ttytype=xterm
gpg-agent[2203674.6] DBG: -> OK
gpg-agent[2203674.6] DBG: <- OPTION lc-ctype=en_US
gpg-agent[2203674.6] DBG: -> OK
gpg-agent[2203674.6] DBG: <- OPTION lc-messages=en_US
gpg-agent[2203674.6] DBG: -> OK
gpg-agent[2203674.6] DBG: <- GET_PASSPHRASE --data -- 
1B20B1BCE6CA7A6CD354C7A42F2149A73CDC9091 X X 
You+need+a+passphrase+to+unlock+the+secret+key+for+user:%0A"WILLIAMS+<wisgisb at williams.com>"%0A1024-bit+DSA+key,+ID+3CDC9091,+created+2002-11-13%0A
gpg-agent[2203674]: DBG: agent_get_cache 
`1B20B1BCE6CA7A6CD354C7A42F2149A73CDC9091'...
gpg-agent[2203674]: DBG: ... miss
gpg-agent[2203674]: starting a new PIN Entry
gpg-agent[2203674]: DBG: connection to PIN entry established
gpg-agent[2203674]: command get_passphrase failed: Operation cancelled
gpg-agent[2203674.6] DBG: -> ERR 67108963 ec=4.99
gpg: cancelled by user
gpg: signing failed: General error
 
Command>
 
 
Any insights would be appreciated.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20081105/49b95fcf/attachment.htm>


More information about the Gnupg-users mailing list