Bug 353960 - automatic new wallet wizard stops with "no suitable key" without hint
Summary: automatic new wallet wizard stops with "no suitable key" without hint
Status: CONFIRMED
Alias: None
Product: frameworks-kwallet
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: VHI normal
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords: usability
: 387881 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-10-16 11:56 UTC by arne anka
Modified: 2024-04-22 06:56 UTC (History)
26 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arne anka 2015-10-16 11:56:17 UTC
connecting to a SMB share from dolphin I am presented with the request to create a new wallet, next step is to decide between bluefish or GPG (claimed to be the better decision).
selecting GPG stops dead with a popup

"Seems that your system has no keys suitable for encryption. Please set-up at least an encryption key, then try again."

the only choice is "OK", there's no hint as to where and how to "set-up at least an encryption key".

there should be a clear indication of where to find further information or, ideally, a link to the necessary tool/settings entry/whatever.

currently I have no idea how to get and set up a GPG key, which I would expect to be possible inside the KDE framework.
Comment 1 Valentin Rusu 2015-11-15 20:51:51 UTC
You must first understand how GPG works before trying to use GPG-based wallets. Please refer to GPG manuals for that.
Comment 2 arne anka 2015-11-15 21:10:16 UTC
no, i certainly do not.
please, read carefully and try to understand before jumping to conclusions!

this is _NOT, repeat _NOT_, about how GPG works or not, but about the wizard leaving users high and dry without the slightest hint of how to proceed.
whether i understand how GPG works or not does not matter here since, even if i do, it does not help me to know how to make the necessary changes to the KDE configuration -- assuming logically that KDE has some kind of UI or such to do the necessary steps.

in any case instead of just a message basically saying "get lost", there _NEEDS_ to be a clear hint how to proceed from KDE's PoV.

the current experience is highly dissatisfying and shouldn't have occured at all.
Comment 3 Valentin Rusu 2015-11-15 22:21:33 UTC
Any patch welcome.
Comment 4 TimP 2016-03-17 16:21:05 UTC
@Valentin 'Any patch welcome.'  is not a constructive or appropriate response. 
I came here because I too had a bad user experience, having no idea where to go next. 
Your response was enough to get me to register. I am a returning KDE user, having been in Ubuntu land for 10 years. This is one of  many little problems.
Comment 5 swpalmer 2016-05-09 15:37:42 UTC
Bad user experience?  Doesn't that pretty much define Linux and the UI-impaired people that maintain it?
Yes, this is a significant issue.  An embarrassment really.  But on Linux, everyone has to be a sysadmin.
Comment 6 Aaron Luft 2016-05-17 11:38:01 UTC
@arne, well thought out comments.

I installed a wifi device and this key manager popup started to show up. Eventually, this command convinced the popup to stop appearing.

gpg --full-gen-key

A key manager that can popup windows when no installed keys are detected should be able to create keys too.
Comment 7 swpalmer 2016-05-17 12:51:45 UTC
Replacing the message, "Seems that your system has no keys suitable for encryption. Please set-up at least an encryption key, then try again." with something more user-friendly is important.  The current message is only meaningful to system administrators, not end users.

The dialog should have a button to launch a key generation wizard.
Comment 8 karsten 2016-07-25 19:21:29 UTC
I had the same behaviour using CentOS 7.2. When I selected "Classic" bluefish instead of GPG it prompted me for a password and its confirmation, and this worked to create a kde wallet.
Comment 9 Atle 2016-07-31 15:04:35 UTC
I had the same problem. gpg --full-gen-key doesn't work for me, but gpg2 --full-gen-key does. It seems my system (kubuntu 16.04) has both v1 and v2 of gpg, and gpg defaults to v1.

After doing this I had to quit and restart the process requesting to use the wallet. Seems the "KDE Wallet System" creating a new wallet will not reload available keys after first loading them.

So:
1. Cancel the dialog for creating a new wallet
2. Run gpg2 --full-gen-key and follow the instructions
3. Redo whatever triggered the request for a new wallet (for example connecting to wireless)
    (Optionally create the wallet using kwalletmanager5, for example 'kdewallet')
Comment 10 enkouyami 2016-08-01 03:10:38 UTC
It's close to a year and the status of this issue is still "UNCONFIRMED."
Comment 11 justin gardiner 2016-08-14 19:48:59 UTC
I just hit this issue after trying linux again after a few years away. It is not good that after my first boot I was asked to enter my wifi password and then was presented with this. As I am a developer I knew what the message meant but most people wouldn't.  This needs to be improved.
Comment 12 Mani 2016-09-10 17:36:47 UTC
I have the same issue, I am using linux starting by RedHat9 and Fedora since 2001, shifting to ubuntu on 2008 since Sep-2016 which I intalled Arch and KDE, I am developer and sysadmin, I just mentiond my background to clear it that I am not a novice Linux user or unprofessional one, but this Error "Seems that your system has no keys suitable for encryption. Please set-up at least an encryption key, then try again." is none sence! how about "Ops, an exception occured!"; from KDE community I do expect more, its more than a year which this issue didnt resolve. I do expect better UX from KDE community and better communication attitude on response; this Error is almost took 30 mins to solve it and around a year which didnt change. I just register the account and report it because of some unfriendly user responce as I can see some others involved with this!
Please try to provide better UX, Plasama5 is a great desktop. Thanks for your efforts.
Comment 13 Denis Revin 2016-09-20 16:55:47 UTC
Same issue for me. It's not clear from this error that you must to do. Can you be more informative about it? For example, you can just tell user something like: "Please, run `gpg2 --full-gen-key` to add at least one key"

Thank you :)
Comment 14 skimwpi 2016-09-29 19:10:36 UTC
Personally, it would be nice to have some message that explain what to do next and those who are familiar with gpg and linux will know what needs to be done. Anyhow, I have done my best below to help those who are stuck and desires using GPG.

Overview of the steps: KDE wallet is looking for something called public key pairs that you register to the keyring. The keyring will be tied to your username on your machine. You can generate your public key pairs using gpg. After you generate your public key pairs, it will be listed in your KDE wallet and you can select it.


1. Check if you have gpg. It normally comes with your linux distribution. Try the following below (If not, replace gpg with gpg2):
>>which gpg
If you get a complaint that it is unavailable, you need to install gpg.

2. Generate your key pair:
>>gpg --gen-key
Select the default when it asks for the kind of key. Choose to have the key never to expire. Follow the instructions to fill out your real name, email, comments, and passphrase (The passphrase is the key that protects your private key in case your private key is stolen). Generate random bytes by doing what it asks you to do. It may take some time so be patient. For me, it took 5 minutes or so. Eventually, you will get an output that it generated it and you will be returned to the prompt.

3. Verify that your key pair has been generated:
>>gpg -K
You will see a list of keys in the keyring and you should see the one that you generated.

The next time KDE wallet runs, your key will be available if you choose GPG encryption. 

I hope this helps.
Comment 15 SchnWalter 2017-03-07 16:03:59 UTC
It would be nice to see more information or at least what is the actual problem.

The message isn't helpful. Even if you try to search for a solution on the internet, there isn't much info out there.

For those still searching, here's how I fixed the problem:
Open KGpg and go to the "Key Properties" screen and change the "Owner Trust", I chose "Ultimately". But I'm not sure if this is the level required, I just went with it. 

Alternatively, you can use the CLI command:
$ gpg --edit-key $KEYID
And then execute the `trust` command, to change the trust field to "5 = I trust ultimately". 

To see a list of trusted keys:
$ gpg --update-trustdb
Comment 16 Christoph Feck 2018-01-02 18:45:36 UTC
*** Bug 387881 has been marked as a duplicate of this bug. ***
Comment 17 Nate Graham 2018-01-17 19:31:11 UTC
I'll see if I can work up a patch for this at some point soon. Not being a cryptography expert, Comment 14 is especially helpful.
Comment 18 Andres Betts 2018-04-02 19:17:34 UTC
If it is not too much to ask, can someone make a video of this?
Comment 19 David Mortals 2020-05-10 04:18:56 UTC
Ubuntu 20.04 LTS, it is still here.

gpg --full-gen-key may fix this.
Comment 20 Andrey 2021-12-22 17:06:33 UTC
I have been getting the dreaded error: "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."

I went through different bug reports and this is the list of things what might go wrong with GPG and are worth checking:

1. You don't have GPG certificate, then generate one using:
    ```bash
    gpg --full-generate-key
    ```
2. Certificate does not have `ultimate` trust.
    * To set it graphically follow: https://bbs.archlinux.org/viewtopic.php?pid=1876589#p1876589
    * To set it through interactive CLI follow this: https://security.stackexchange.com/a/129477

3. Certificate has expired (this was my case, it sort of worked, but I couldn't update any passwords and was constantly getting an error).
    To fix this issue, either generate a new certificate or change expiry date (don't worry, the key itself will still be the same):
    
    ```bash
    # Find the key which needs to be updated.
    # IMPORTANT: Keys can have sub keys, check all expiration dates!
    gpg --list-secret-keys --keyid-format=long --verbose

    ################# Enter interactive mode
    KEY=
    gpg --edit-key ${KEY}

    ################# In interactive mode
    list
    # This will choose the second key (0-based index)
    key 1
    # Change expiration date
    expire
    # Choose validity length, for example, 3 years from now on:
    3y
    # IMPORTANT! Confirm to save changes
    save
    ```
Comment 21 richard.j.e.cooke 2022-06-28 11:11:55 UTC
Seven years later and this bug is still here :-O.  Not even a help message.

Does Ubuntu have this bug as well as Kubuntu?  I'm thinking I should switch if this is the first thing I encounter when trying to switch from Windows to Linux.
Comment 22 ayhon 2022-11-13 16:44:42 UTC
Here to say this is still a problem. It'd be nice if a general user was guided in a better way to a solution. 
The KDE Wallet Service seems like a great feature in Plasma, but the way it's presented makes people shy away from it. If it's going to be enabled by default (it was in Fedora 36), I think it should prompt for some kind of setup at the beginning. Having said this, I don't know if this should be enabled by default.
Comment 23 Lars Gottlieb 2023-11-27 13:30:50 UTC
I've been distrohopping a little over this week, and every single KDE based distro I've tried has had this happen every time the user tries to open a Chromium based browse, or an application based on it. 

This issue has been open for 8 full years. 

That this is such a low priority for the KDE design team is frankly not a great look. You can wipe it off on the chromium team if you like, but it appears the message comes from KDE, not Chromium. 

I humbly suggest some ressources be allocated to fix this; if nothing else make the message link to a user friendly solution.
Comment 24 Stig Grindland 2023-12-09 14:44:41 UTC
Hello, I'm also here regarding this user experience, as I have experienced it myself ever since I switched to linux some months ago and trying different distros. 

KDE feels unhelpful by telling me to "Please set-up at least an encryption key, then try again.", as if I'm already an expert on this stuff. Which is making me do the job of searching up how to do this the right way. Which again leads me to all kind of info from years back which I'm not sure about.

If the error message could include a link to KDE documentation, or some suggestion on how to proceed with setting up GPG, I think it would be a great step forward here.

For context, I went through these steps and I hope new users doesn't have to: Ask an AI for help -> reddit -> link to this issue -> understand why I should set up GPG and not escape to blowfish.

I am now glad to see that I'm not alone here, and thanks to all you previous commenters for the information collected here.
Comment 25 Jeff Stokes 2023-12-16 05:26:28 UTC
This bug has been open 8 years now. Nice of some folks to put fixes in the comments. Maybe the devs could use one with a button or option in the gui.
Comment 26 Evren 2024-04-22 06:56:00 UTC
Managing, setting up a new gpg key or modifying an existing expired key within KDE is possible through Kleopatra application, this way you don't need to look up for terminal commands. But i still believe KWallet should redirect the user to launch Kleopatra application if there is no suitable gpg is found, so the user would then find out what to do next easily on a user friendly gui.