Bug 368126 - KWallet can't open a gpg-encrypted wallet
Summary: KWallet can't open a gpg-encrypted wallet
Status: CONFIRMED
Alias: None
Product: frameworks-kwallet
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.94.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-01 22:46 UTC by Lastique
Modified: 2024-09-10 08:43 UTC (History)
4 users (show)

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


Attachments
KWallet error message (37.12 KB, image/png)
2016-09-01 22:46 UTC, Lastique
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lastique 2016-09-01 22:46:01 UTC
A newly created wallet with GPG backend cannot be opened.

Reproducible: Always

Steps to Reproduce:
1. Start Wallet Manager.
2. Create a new wallet (File->New), select GPG backend and an RSA-4096 GPG key.
3. When you select the key, an error appears (see the attach). No matter how many times you press Retry, the same error appears.
4. When you press Cancel, the error disappears, the new wallet is in the list in the Manager.
5. When you try to open the wallet, the same error appears. Occasionally the error does not appear and the wallet opens, but that is a rare case.
6. The same error appears when you execute `kwallet-query -l <wallet name>` in the command line.


Actual Results:  
An error appears, the wallet is inaccessible.

Expected Results:  
The wallet should work.

The GPG key uses RSA 4096-bit key with no passphrase.
Comment 1 Lastique 2016-09-01 22:46:32 UTC
Created attachment 100890 [details]
KWallet error message
Comment 2 Aleksandar Kostadinov 2021-04-29 16:05:02 UTC
It worked for me in Fedora 32, don't know which exactly version but now with Fedora 34 I see an error after entering GPG key password. This happens with the existing wallet as well when I created a new one. 

> Encryption error while attempting to save the wallet kdewallet. Error code is 53 (Unusable public key). Please fix your system configuration, then try again. This error may occur if you are not using a full trust GPG key. Please ensure you have the secret key for the key you are using. 

-- kwalletmanager5-20.12.2-1.fc34.x86_64
-- kf5-kwallet-libs-5.80.0-1.fc34.x86_64
Comment 3 Lassi Väätämöinen 2022-06-04 23:37:11 UTC
Started happening just recently on openSUSE Tumbleweed:

kwalletmanager5              | package    | 22.04.1-1.1 | x86_64 | Main Repository (OSS)
kwalletd5                            | package    | 5.94.0-1.1  | x86_64 | Main Repository (OSS)
libkwalletbackend5-5       | package    | 5.94.0-1.1  | x86_64 | Main Repository (OSS)
kwallet-tools                       | package    | 5.94.0-1.1  | x86_64 | Main Repository (OSS)
Comment 4 Lassi Väätämöinen 2022-06-04 23:39:44 UTC
(In reply to Lassi Väätämöinen from comment #3)
> Started happening just recently on openSUSE Tumbleweed:

'gpg -K' and KGpg show that keys are just fine. KWallet seem to think
>Seems that your system has no keys suitable for encryption. Please set-up at least one encryption key, then try again.
Comment 5 Alwyn 2024-09-10 08:43:50 UTC
I am getting the same error message and I will add a bit more context:

I am on Arch Linux and I started using KDE initially with ly [1].
As I saw later that sddm was recommended I installed sddm, enabled it and tried to start using it.
Now when I log in with sddm instead of ly, I get the error message described above. gpg works fine, kwallet just seems to be unable to load my wallet.
When I go back to ly, it works fine again.

If I try to open a wallet in kwalletmanager, it just freezes. As in: it freezes as soon as I click "Open"; I can't even select a wallet to open in the first place. If started from the command line, there is no additional logging.
Similarly, if I run `kwallet-query -v -l kdewallet` it hangs; I am not getting an error message. That said, it is possible I did not wait long enough for a timeout to occur.

- kwallet 6.5.0-1
- kwallet-pam 6.1.4-1
- kwalletmanager 24.08.0

[1]: https://github.com/fairyglade/ly