Sample Header Ad - 728x90

Strange error with GnuPG: claims "no secret key" when terminal is too small

2 votes
1 answer
3314 views
This is the content of my .gnupg/gpg-agent.conf:
pinentry-program /usr/bin/pinentry-curses
When I try to retrieve a password from pass' store, e.g. via pass -c path/to/password in a very small-sized terminal window, the command errors like this:
gpg: decryption failed: No secret key
So it's an error from GnuPG, caused, I believe, by not enough space for ncurses to draw the pinentry dialog. Can anybody reproduce this? If so, where can I report this bug? enter image description here
Asked by Enlico (2258 rep)
Feb 22, 2021, 09:03 PM
Last activity: Feb 24, 2021, 01:51 PM