aerc, gpg and pinentry

By chimo on (updated on )

If you’re getting an error like “Screen or window too small” while trying to use gpg (ex: `gpg --import ./private.key`), one way to fix it might be to instruct gpg to use “pinentry-tty”

~/.gnupg/gpg-agent.conf
pinentry-program /usr/bin/pinentry-tty

Note that you might need to install pinentry-tty.

If you’re getting “failed to parse messagedetails: FAILURE sign” when aerc tries to sign a message, you might need to tell aerc to use terminal pinentry:

~/.config/aerc/aerc.conf
[general]
use-terminal-pinentry=true