Summary: | KMyMoney embedded GPG version out of date | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | veperr <veperr-kdebug> |
Component: | packaging | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | greg_sitbon, ralf.habacker, veperr-kdebug |
Priority: | NOR | ||
Version: | 5.0.6 | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Bug Depends on: | |||
Bug Blocks: | 426400 |
Description
veperr
2020-04-05 02:39:44 UTC
> Two related issues (can split into separate bug reports if desired): > 2) KMyMoney should also (and preferentially) support using a non-embedded version of GPG, please do that as this is a separate feature request. > 1) Version of gpg embedded in KMyMoney should be a currently supported version An update to 2.2.27 is in work for the cross compiled snapshots. Snapshots from the binary factory does not have embedded gpg support yet, see bug 435761 for an associated feature request. (In reply to Ralf Habacker from comment #1) > An update to 2.2.27 is in the works for the cross-compiled snapshots. The 32bit snapshots from https://kmymoney.org/snapshots.php now have a current gpg version (2.2.27) embedded. Please note that this gpg update from version 2.0 to 2.2 means that existing private keys cannot be used by default. They must be exported from the older version and imported into the newer version. 1. before starting kmymoney or any gpg2 related command, open the command shell in the kmymoney bin directory and execute robocopy /MIR %USERPROFILE%\gnupg %USERPROFILE%\AppData\Roaming\gnupg 2. open a second command shell in the bin directory of the old kmymoney installation and run gpg2 -list-secret-keys # inspect the list of displayed keys, see for pub 2048R/xxxxx or similar gpg2 --output <some-path>/xxxx.key --export-secret-keys xxxx # Repeat this for each additional key to be exported 3. switch to the command shell opened during the new installation and run gpg2 --import <some-path>/xxxx.key see https://dev.gnupg.org/T3101 for more details. Can we somehow present this information (or a link to it) directly to the Windows user in case he tries to open a GPG encrypted KMyMoney file but GPG is not found? (In reply to Thomas Baumgart from comment #3) > Can we somehow present this information (or a link to it) directly to the > Windows user in case he tries to open a GPG encrypted KMyMoney file but GPG > is not found? Errors on loading are displayed at https://invent.kde.org/office/kmymoney/-/blob/master/kmymoney/kmymoney.cpp#L3414 and GPG related issues are raised at https://invent.kde.org/office/kmymoney/-/blob/master/kmymoney/plugins/xml/xmlstorage.cpp#L134, which could be extended. The question is how to detect this case? For example, on the basis of differences in available keys: Number of keys > 0 and number of private keys != number of keys. Another problem arises when using the setup installer: To fix this problem, the old gpg installation must still exist, which will not be the case if users use the setup variant, which will probably overwrite the old installation. The snapshots from https://kmymoney.org/snapshots.php now have a current gpg version (2.2.27) embedded. |