0

Мне требуется сгенерировать gpg-key, но, прождав довольно много времени после появления сообщения:

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 --generate-key
4
  • На виртуалке?) там нужны хаки чтоб разогнать энтропию...
    – eri
    24 сен 2020 в 0:35
  • @eri ша напишу ответ 24 сен 2020 в 0:35
  • Решил........... 24 сен 2020 в 0:35
  • serverfault.com/questions/471412/… вот ещё куча ответов. Ссылочка для ищущих в будующем
    – eri
    24 сен 2020 в 0:38

1 ответ 1

0

Судя по всему проблема в генераторе случайных чисел. Решение я нашёл здесь и здесь.

Fedora/Rh/Centos:

sudo yum install rng-tools

Ubuntu/Debian:

sudo apt-get install rng-tools

Затем запустите

sudo rngd -r /dev/urandom 

Теперь можно сгенерировать ключи.

gpg --generate-key

Затем, после ввода персональной информации, Вы, вероятно, получите дважды следующее сообщение:

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: /home/username/.gnupg/trustdb.gpg: trustdb created
gpg: key 0B8634BGA76380DA marked as ultimately trusted
gpg: directory '/home/username/.gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/home/username/.gnupg/openpgp-revocs.d/620C6DE274C68UJ2DCFC6BF60B870XSFAA7EC80DA.rev'
public and secret key created and signed.

pub   rsa3072 2020-09-24 [SC] [expires: 2022-09-24]
      620C6DE274C68UJ2DCFC6BF60B870XSFAA7EC80DA
uid                      First Last <[email protected]>
sub   rsa3072 2020-09-24 [E] [expires: 2022-09-24]

Наконец, в Вашей директории будет эта папка .gnupg/:

openpgp-revocs.d/
private-keys-v1.d/
pubring.kbx
pubring.kbx~
trustdb.gpg

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge you have read our privacy policy.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.