mmumshad / kubernetes-the-hard-way

Bootstrap Kubernetes the hard way on Vagrant on Local Machine. No scripts.
Apache License 2.0
4.7k stars 4.54k forks source link

Fix issue Can't load /home/vagrant/.rnd into RNG #100

Closed afkham closed 4 years ago

afkham commented 4 years ago

openssl req -new -key ca.key -subj "/CN=KUBERNETES-CA" -out ca.csr Running above command results in the following error if the /home/vagrant/.rnd file is not present

Can't load /home/vagrant/.rnd into RNG 140377325285824:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/home/vagrant/.rnd

creekorful commented 4 years ago

I do have the same issue, and this was solved by creating the file you specified. 👍

K2-KK commented 4 years ago

Issue is not reproducible. I believe it is mentioned in the doc to comment the RANDFILE

Comment line starting with RANDFILE in /etc/ssl/openssl.cnf definition to avoid permission issues

sudo sed -i '0,/RANDFILE/{s/RANDFILE/#&/}' /etc/ssl/openssl.cnf

https://github.com/mmumshad/kubernetes-the-hard-way/blob/master/docs/04-certificate-authority.md#certificate-authority

Closing this now.