Version: (using KDE 4.2.0) OS: Linux Installed from: Compiled From Sources When clicking on "Change Passphrase..." in kleopatra's "My Certificates" view I get the following error An error occurred while trying to change the passphrase. The output from /usr/bin/gpg was: gpg: using character set `utf-8' Secret key is available. gpg: using PGP trust model gpg: [...] Heinz Wiesinger Key is protected. gpg: can't query passphrase in batch mode Can't edit this key: bad passphrase Key not changed so no update needed I think the clue is "bad passphrase" here, because kmail reports the same when trying to sign emails. I already tried the various suggestions on the net regarding gpg-agent, but it didn't help either.
I can confirm this with an X509 certificate, I was prompted for a password to protect the certificate and no matter what password I enter (even a blank one) it won't match later either in kleopatra or kmail. Kleopatra 2.0.12 Kde 4.4.2
This problem is fixed with gnupg 2.0.15, however it is necessary to delete the certificate and re-import it after the update (a reboot or a restart of gpg-agent is needed). If the original reporter confirms the bug should be closed.
I'm resolving this as worksforme to keep the bugtracker clean. It works for me and as subscryer wrote this was fixed in gnupg. Thanks.