hluk / hluk/CopyQ

Encryption: failed to generate keys

Open
#3,347 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
12.3k
Forks
593
Avg merge
2d 8h
Merged PRs (30d)
9

Description

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.)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.