RNG(随机数发生器)和gpg --gen-key生成密钥卡住的解决方法

随机数生成器(Random Numeral Generator)是用于生成随机数的程序或硬件。
在使用gnupg安装时,生成key时,中间会需要生成多个随机数,这时候就可以试着使用RNG来生成随机数,以获得足够的熵数。
例如:在执行gpg --gen-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.

具体如下:

apt-get install rng-tools(ubuntu)

yum install rng-tools (centos)

rngd -r /dev/urandom

你可能感兴趣的:(Linux,其他,gnupg)