Bug 229047

Summary: Cannot open encrypted file
Product: [Applications] kmymoney Reporter: Toan <nguyenthetoan>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Toan 2010-03-01 18:03:04 UTC
Version:           latest SVN (using KDE 4.3.2)
Compiler:          GCC 4.4.1 
OS:                Linux
Installed from:    Compiled From Sources

I have problems opening my gpg encrypted file in 2 among my 3 machines. When I type kmymoney myfile.kmy, a dialog show up complaining "The following error was encountered while open file myfile.kmy, bad passphrase".

For your information: 

- KMM 1.0.2 has no problem opening the file. A dialog would appear, asking for password. This dialog doesn't show up in KMM 3.96-latestSVN. It immediately says bad passphrase (but I didn't have chance to enter anything!).
- I use 'gpg -d myfile.kmy > myfile.xml'. KMM 3.96 can open the XML file easily. When I 'save as' this XML file to a new mynewfile.kmy with gpg encryption. KMM cannot open the newly created file.
- I delete my .kde directory just to start fresh, the problem persists.
Comment 1 Cristian OneČ› 2010-03-03 09:40:18 UTC
That error message usually means that you don't have gpg-agent installed on your system or it's pinentry is not configured properly. See the following post http://brondsema.net/blog/index.php/2007/02/06/keychain_gpg_agent_pinentry_problems
Comment 2 Toan 2010-03-05 04:21:03 UTC
Thanks a lot! It indeed has something to do with mis-configured gpg-agent. I installed pinentry-qt, created gpg-agent.conf and added use-agent option to gpg.conf. Now KMM opens the encrypted file correctly. 

Still it would be nice if KMM could give some error message about problems with gpg-agent.