https://bugs.kde.org/show_bug.cgi?id=353960

Andrey <sen...@yandex.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sen...@yandex.ru

--- Comment #20 from Andrey <sen...@yandex.ru> ---
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
    ```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to