This is an ongoing issue with #OpenSSL. The #RANDFILE variable is ignored.
To fix this issue, You need to add the variable with each new command prompt, or add it to the machine variables once and restart your #machine.
More Info >>
https://ibmimedia.com/blog/98/solution-to-unable-to-write-random-state-openssl-error