Pinentry does not appear when importing keys with gpgsm

Jan Eden net at janeden.net
Fri May 24 13:00:51 CEST 2013


Hi,

using GnuPG 2.0.19 and pinentry 0.8.3, I cannot import certificates with
private keys. There seems to be a problem between gpg-agent and
pinentry (excerpt from gpg-agent.log):

gpg-agent[22502]: chan_8 -> GETINFO pid
gpg-agent[22502]: chan_8 <- D 22503
gpg-agent[22502]: chan_8 <- OK
gpg-agent[22502]: chan_6 -> INQUIRE PINENTRY_LAUNCHED 22503
gpg-agent[22502]: chan_6 <- END
gpg-agent[22502]: chan_8 -> SETDESC Please enter the passphrase to unprotect the PKCS#12 object.
gpg-agent[22502]: chan_8 <- OK
gpg-agent[22502]: chan_8 -> SETPROMPT Passphrase:
gpg-agent[22502]: chan_8 <- OK
gpg-agent[22502]: chan_8 -> [[Confidential data not shown]]
gpg-agent[22502]: chan_8 <- [[Confidential data not shown]]
gpg-agent[22502]: chan_8 -> BYE
2013-05-24 12:40:34 gpg-agent[22502] command get_passphrase failed: Invalid IPC response
gpg-agent[22502]: chan_6 -> ERR 67109124 Invalid IPC response <GPG Agent>
gpg-agent[22502]: chan_6 <- [eof]
gpg-agent[22499]: chan_6 <- [eof]

This is what is displayed in my shell:

gpgsm --import mycert.de.p12 
gpg-agent[22499]: enabled debug flags: command mpi crypto memory cache memstat hashing assuan
gpgsm: gpg-agent[22502]: enabled debug flags: command mpi crypto memory cache memstat hashing assuan
gpgsm: gpg-protect-tool: error while asking for the passphrase: Invalid IPC response
gpgsm: error running `/usr/local/libexec/gpg-protect-tool': exit status 2
gpgsm: total number processed: 0

Strangely enough, when generating certificate requests with gpgsm,
pinentry shows up properly, and the certificate request is created. Fom
gpg-agent.log (this is just the last of several pinentry instances):

gpg-agent[22594]: chan_10 -> GETINFO pid
gpg-agent[22594]: chan_10 <- D 22599
gpg-agent[22594]: chan_10 <- OK
gpg-agent[22594]: chan_6 -> INQUIRE PINENTRY_LAUNCHED 22599
gpg-agent[22594]: chan_6 <- END
gpg-agent[22594]: chan_10 -> SETDESC To complete this certificate request please enter the passphrase for the key you just created once more.%0A
gpg-agent[22594]: chan_10 <- OK
gpg-agent[22594]: chan_10 -> SETPROMPT Passphrase:
gpg-agent[22594]: chan_10 <- OK
gpg-agent[22594]: chan_10 -> [[Confidential data not shown]]
gpg-agent[22594]: chan_10 <- [[Confidential data not shown]]
gpg-agent[22594]: chan_10 <- [[Confidential data not shown]]
gpg-agent[22594]: chan_10 -> BYE
2013-05-24 12:52:55 gpg-agent[22594] DBG: agent_put_cache `6828DFFBCE9EB36CC5628D36C876D594C169D73D' requested ttl=0 mode=2
2013-05-24 12:52:55 gpg-agent[22594] DBG: skey: [open]
  [data="private-key"]
  ...

Kind regards,
Jan



More information about the Gnupg-users mailing list