I am trying to generate a CSR using openssl on openshift. I have been encountering this when I run the command using SSH.
openssl genrsa -des3 -out myApp.key 2048
Generating RSA private key, 2048 bit long modulus
...........+++
.....................................................................+++
unable to write 'random state'
e is 65537 (0x10001)
I have researched quiet a bit and tried couple of things
- change to data directory or some other directory there the user has rights, and then execute the command. This didn't work. Same error
- Some folks suggested to run this command as sudo. But I cannot do that on openshift servers
- Others mentioned to remove .rnd files using this command sudo rm ~/.rnd , and again I cannot run this on openshift.
Any pointers? I am baffled that this is happening on a clean new app.