Skip to content

Encryption: failed to generate keys #3347

@realchrisolin

Description

@realchrisolin

Microsoft Windows [Version 10.0.26100.7171]
CopyQ v13.0.0

In Windows environments, after clicking the button to generate a new key, an error message is displayed:

failed to generate keys

This error is misleading as a new and valid encryption key can be located at
C:\Users\%USERNAME%\AppData\Roaming\copyq\copyq.pub. To resolve this issue, the key needs to be imported into Kleopatra:

Image

After importing the key, a window will pop up prompting you to trust the key. You must trust it for encryption in CopyQ to work. Kleopatra should show the key in a certified status now:

Image

At this point, close and reopen CopyQ. Encryption should work without any problem now.

(I opened this issue so anyone googling the error message will likely find this issue along with steps to fix as I don't expect there's anything that can be done upstream to automatically import the key in Kleopatra -- it may be better to flesh out these instructions to resolve this issue in the official docs.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions