我在后台运行了大量的进程来尝试获取足够的熵,但是我仍然失败了。
**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.
Not enough random bytes available. Please do some other work to give
the OS a chance to collect more entropy! (Need 210 more bytes)**
我需要一种方法来生成有效的密钥,因为我要尝试执行的操作显然失败了。
你看过RNG吗?
Fedora / Rh / Centos类型: sudo yum install rng-tools
关于deb类型:sudo apt-get install rng-tools
进行设置。
然后运行,sudo rngd -r /dev/urandom
然后生成密钥。
参考:http://it.toolbox.com/blogs/lim/how-to-generate-enough-entropy-for-gpg-key-generation-process-on-fedora-linux-38022
另外,更重要的是,
sudo apt-get install rng-tools
如果您使用的是Ubuntu ,则可以使用它,而不必sudo yum install rng-utils
像Fedora那样使用它们,因为没有rng-utils
适用于Ubuntu的软件包。该软件包
rng-tools
在Fedora和EL6上都被命名,因此我怀疑链接文章中有错字。顺便说一句,最好在此处提供答案的基本部分,并提供链接以供参考,以防将来链接失效。urandom中没有“低质量熵”或“伪熵”。urandom调用与/ dev / random相同的代码。无需在CSPRNG中添加额外的随机性(在引导时除外,在那里您的发行版应该照顾好它)。这是一个神话,不应该传播。参见例如sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers或以下视频:media.ccc.de/v/32c3-7441-the_plain_simple_reality_of_entropy
这是关于乌兰多姆神话的另一个好例子。
基本上,GPG已损坏,无法从/ dev / random读取,然后从永不阻塞的/ dev / urandom进行阻塞。网络上充满了有关它的问题。