Key generation error (was: Re: gpg-agent and allow-loopback-pinentry)
Patrick Brunschwig
patrick at enigmail.net
Thu Jan 29 08:01:57 CET 2015
On 21.01.15 19:06, Werner Koch wrote:
> Hi,
>
> today I pushed changes which allow to put the passphrase again into the
> parameter file.
>
> You may now also do this
>
> gpg --batch --passphrase '' --quick-gen-key '<all at keys-belong-to.eu>'
>
> or with a passphrase
>
> gpg --batch --passphrase 'abc' --quick-gen-key '<all at keys-belong-to.de>'
I tried key generation with and without pre-setting a password using git
commit 11142e0ad7bc9a9e3c3dccf958d8dbd3312cb993.
Key generation works fine if used with --batch (like above, and also by
specifying the parameters via stdin). However, when the password should
be queried via pinentry, I get a segfault. Password inquiry via
gpg-agent/pinentry works for all other use-cases.
Below is the output with --debug-level guru:
gpg: DBG: chan_15 <- OK Pleased to meet you
gpg: DBG: connection to agent established
gpg: DBG: chan_15 -> RESET
gpg: DBG: chan_15 <- OK
gpg: DBG: chan_15 -> OPTION ttyname=/dev/ttys003
gpg: DBG: chan_15 <- OK
gpg: DBG: chan_15 -> OPTION ttytype=xterm
gpg: DBG: chan_15 <- OK
gpg: DBG: chan_15 -> OPTION
display=/private/tmp/com.apple.launchd.5VKt4lyW1S/org.macosforge.xquartz:0
gpg: DBG: chan_15 <- OK
gpg: DBG: chan_15 -> OPTION lc-ctype=en_US.UTF-8
gpg: DBG: chan_15 <- OK
gpg: DBG: chan_15 -> OPTION lc-messages=en_US.UTF-8
gpg: DBG: chan_15 <- OK
gpg: DBG: chan_15 -> OPTION allow-pinentry-notify
gpg: DBG: chan_15 <- OK
gpg: DBG: chan_15 -> OPTION agent-awareness=2.1.0
gpg: DBG: chan_15 <- OK
gpg: DBG: chan_15 -> AGENT_ID
gpg: DBG: chan_15 <- ERR 67109139 Unknown IPC command <GPG Agent>
gpg: DBG: chan_15 -> RESET
gpg: DBG: chan_15 <- OK
gpg: DBG: chan_15 -> GENKEY --inq-passwd
gpg: DBG: chan_15 <- S INQUIRE_MAXLEN 1024
gpg: DBG: chan_15 <- INQUIRE KEYPARAM
gpg: DBG: chan_15 -> D (genkey(rsa(nbits 4:2048)))
gpg: DBG: chan_15 -> END
gpg: DBG: chan_15 <- INQUIRE NEWPASSWD
gpg: signal Segmentation fault caught ... exiting
Segmentation fault: 11
-Patrick
More information about the Gnupg-devel
mailing list