https://bugs.kde.org/show_bug.cgi?id=481645
Bug ID: 481645 Summary: XML-Storage plugin unable to decrypt from a security key (probably should use "pinentry-qt" for decryption) Classification: Applications Product: kmymoney Version: 5.1.3 Platform: Microsoft Windows OS: Microsoft Windows Status: REPORTED Severity: normal Priority: NOR Component: database Assignee: kmymoney-devel@kde.org Reporter: ex9qe...@anonaddy.me Target Milestone: --- Created attachment 165986 --> https://bugs.kde.org/attachment.cgi?id=165986&action=edit here you see "explorer... .jpg" from KMyMoney's XML-Storage plugin. Other two are when trying to decrypt with Kleopatra or within application with SmartCard / security key SUMMARY *** NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** When decrypting PGP encrypted vault with a security key, I get following error: ### Cannot read the file: path/to/my/file /home/abuild/rpmbuild/BUILD/kmymoney-5.1.3/kmymoney/plugins/xml/xmlstorage.cpp:140 When I use OpenPGP keys that are stored on the device, so that cleopatra lists them, it works fine. If I have the same private keys on the security key (such as nitrokey), it gives me this error. *Please read additional information.* STEPS TO REPRODUCE 1. Generate keys on device or directly on the security key / smartcard. 2. When exporting the vault to XML, encrypt it with public key, whose private key resides only on the smartcard /security key. 3. Try to open the vault, the error appears. OBSERVED RESULT The same as in Summary EXPECTED RESULT The same result as with private key stored on device. SOFTWARE/OS VERSIONS Windows: 10 Pro macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION I tried to achieve this with other programs that support PGP encryption and it worked. I think the reason for this is the version of gpg interface used by plugin. I think this is correct, because the UI looks much older than when I'm trying on other programs. It may be because the GPA is not shipped within gpg4win anymore. Probably if Kleopatra would be used for decryption, it should work. If you look at screenshots the plugin KMyMoney uses is called "pinentry" and kleopatra uses "pinentry-qt". -- You are receiving this mail because: You are the assignee for the bug.