Я не могу сгенерировать ключ gpg через программу для ключей

Всякий раз, когда я пытаюсь сгенерировать ключ gpg через системную программу GPG, он запрашивает мое имя, адрес электронной почты и пароль, после чего все, кроме главного окна программы GPG, исчезает.

При использовании gpg key-gen

gpg: can't open `/home/jesse/.gnupg/random_seed': Permission denied
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: WARNING: some OpenPGP programs can't handle a DSA key with this digest size
+++++++++++++++..++++++++++...+++++++++++++++.+++++..+++++.+++++.++++++++++.+++++++++++++++..+++++.++++++++++++++++++++.++++++++++++++++++++++++++++++.+++++.+++++.+++++...+++++>+++++...+++++++++++++++++++++++++..+++++++++++++++>.+++++>+++++................................................................................................................................................................................................................................................................................>.+++++.................................................................................................................+++++

Not enough random bytes available.  Please do some other work to give
the OS a chance to collect more entropy! (Need 300 more bytes)
gpg: no writable public keyring found: eof
Key generation failed: eof
gpg: note: random_seed file not updated
10
задан 2 August 2019 в 04:56

2 ответа

Для меня удаляя .gnugpg папка помогла:

sudo rm -rf ~/.gnugpg
9
ответ дан 2 August 2019 в 04:56

Полномочия могли бы быть неправильными после выполнения gpg от корня, лишив возможности изменять один/некоторый из файлов как обычный пользователь "joey".

find ~/.gnupg -type d -exec sudo chown joey:joey {} \; -exec chmod 700 {} \;
find ~/.gnupg -type f -exec sudo chown joey:joey {} \; -exec chmod 600 {} \;

В случае, если случай Вы не хотите удалять любые существующие ключи, это будет полезно.

4
ответ дан 7 October 2019 в 16:11

Другие вопросы по тегам:

Похожие вопросы: