FS#29156 - gpg-agent does not prompt for passphrase with pinentry-curses
Attached to Project:
Arch Linux
Opened by Xyne (Xyne) - Wednesday, 28 March 2012, 20:21 GMT
Last edited by Gaetan Bisson (vesath) - Wednesday, 28 March 2012, 23:38 GMT
Opened by Xyne (Xyne) - Wednesday, 28 March 2012, 20:21 GMT
Last edited by Gaetan Bisson (vesath) - Wednesday, 28 March 2012, 23:38 GMT
|
Details
To reproduce:
eval $(gpg-agent --daemon --pinentry-program /usr/bin/pinentry-curses) gpg -sb /some/file Output: You need a passphrase to unlock the secret key for # key data here gpg: cancelled by user gpg: no default secret key: Operation cancelled gpg: signing failed: Operation cancelled No prompt ever appears. I've tried with and without exporting GPG_TTY=$(tty). I've also tried setting the pinentry app in the gpg-agent configuration file: I get the same output as above. Without working pinentry-curses support there seems to be no way to use gpg without a GUI environment. (gpg --passphrase-fd 0 waits for input, but the input is ignored and the GUI prompt still pops up) |
This task depends upon
pinentry-program /usr/bin/pinentry-curses
no-grab
default-cache-ttl 1800
I use different accounts to manage ssh, gpg, email and other things. I su into them as needed (to run mail clients, sign files, etc). With the previous gpg package this was never a problem. With the new one, it works with pinentry-gtk-2 and gpg-agent but not pinentry-curses. All configuration files are in the target user's ~/.gnupg dir and I've checked that the correct files are read.
Is that an upstream bug or am I missing something?