I’m generating a self-signed SSL certificate to protect my server’s admin section, and I keep getting this message from OpenSSL:
unable to write ‘random state’
What does this mean?
This is on an Ubuntu server. I have upgraded libssl to fix the recent security vulnerability.
In practice, the most common reason for this happening seems to be that the .rnd file in your home directory is owned by root rather than your account. The quick fix:
For more information, here’s the entry from the OpenSSL FAQ:
So I would check RANDFILE, HOME, and permissions to write to those places in the filesystem.
If everything seems to be in order, you could try running with strace and see what exactly is going on.