mmumshad / kubernetes-the-hard-way

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

Error message for Openssl certificate creation #98

Closed santhoshgk closed 2 years ago

santhoshgk commented 4 years ago

when i try to run openssl req -new -key ca.key -subj "/CN=KUBERNETES-CA" -out ca.csr i get the error message as Can't load /home/vagrant/.rnd into RNG 139958695195072:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/home/vagrant/.rnd

santhoshgk commented 4 years ago

i got this resolved thanks

ekovacs commented 4 years ago

same happend to me.

the solution was to:

vim /etc/ssl/openssl.cnf

and comment out the line:

RANDFILE               = $ENV::HOME/.rnd