GNOME Bugzilla – Bug 678771
GPG agent cannot unlock keys with % in passphrase
Last modified: 2012-06-28 13:54:06 UTC
Since the upgrade to GNOME 3.4, I can no longer unlock my GPG keys using gnome-keyring as agent. Older versions that didn't integrate the password prompt into gnome-shell worked correctly. gpg will just say "invalid passphrase" after entering my correct passphrase with % sign in it. Using strace, I found out that the %-sign is not encoded at all when sent from gnome-keyring-daemon to GPG. The default password box that shows up when I unset GPG_AGENT_INFO encodes this character and unlocks my key correctly.
Created attachment 217522 [details] [review] gpg-agent: Encode passwords when --data was requested * Use URI encoding to return passwords when gnupg calls us with a --data argument.
Comment on attachment 217522 [details] [review] gpg-agent: Encode passwords when --data was requested Thanks for catching that. Here's the patch I committed to gnome-keyring to fix it. There's two ways to request passwords. I guess you must have upgraded to gnupg 2.x or some gnupg version that requests passwords in the less tested way.