Bug 229047 - Cannot open encrypted file
Summary: Cannot open encrypted file
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-01 18:03 UTC by Toan
Modified: 2010-03-05 04:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.