Use apt-get haveged over rng-tools for VPS randomness

This commit is contained in:
FIRSTNAME LASTNAME 2017-01-18 18:22:42 -08:00
parent 06d9df687b
commit 47460dbd60
No known key found for this signature in database
GPG Key ID: F8D36C91357405ED

View File

@ -75,11 +75,18 @@ adduser user1 sudo
reboot
ssh user1@162.243.130.224
ssh user1@45.33.46.147
sudo apt-get install rng-tools # Installs random number tools — otherwise gpg will not have enough randomness on a VPS
sudo apt-get install haveged # Installs random number tools — otherwise gpg will not have enough randomness on a VPS
## TODO: rng-tools may be installed by haveged -- if working remove these
#sudo apt-get install rng-tools
#/etc/init.d/rng-tools start
#sudo /usr/sbin/rngd -r /dev/urandom # Initialize randomness pool
#cat /dev/urandom | rngtest -c 1000 # check randomness pool
## TODO: make sure haveged is properly initialized, and that it will be started on boot
sudo /usr/sbin/rngd -r /dev/urandom # Initialize randomness pool
gpg --gen-key # create a key for this VPS (I don't the name of this machine as the email address — all other questions I press return
#TODO: I'm not absolutely sure that we need to do this — it is only required for fully qualified --verify if an --lsign is done of the import.