Search code examples
opensslssl-certificateclient-certificates

Can't load /root/.rnd into RNG


I want to generate a server certificate using Windows Open SSL.

When I run this command line, it appear this error. What should I do?

Command

:
openssl req -new -x509 -days 3650 -key ca.key -out ca.crt

Error:

Can't load ./.rnd into RNG 10504:error:2406F079:random number generator:RAND_load_file:Cannot open file:crypto\rand\randfile.c:98:Filename=./.rnd

I also try to find openssl config file, but no, I don't have that file.


Solution

  • Try removing or commenting RANDFILE = $ENV::HOME/.rnd line in /etc/ssl/openssl.cnf