doc:kb:gpg

GPG error when signing

gpgme gave error GPGME:11:  Bad passphrase

Seems to be due some incorrect detecction of controlling tty, this affects many programs using gpg signing.

Upstream bug, on Debian there is an opened bug with not much info.

This is a first try which not always worked:

export GPG_TTY=$(tty)
gpg-agent --daemon --pinentry-program=/usr/bin/pinentry-curses --keep-tty bash

Another more weird way is temporarily unset the password on the key:

gpg --edit-key <KeyId>
gpg> passwd
(...old password...)
(empty)
(empty)
  • doc/kb/gpg.txt
  • Last modified: 2021/06/10 21:45
  • by 127.0.0.1