Page 1 of 1

OpenSSL error - unable to write random state

Posted: Fri Feb 24, 2012 11:21 pm
by Illuminante
So i just got the program and I am following this guide
http://lockup.wordpress.com/configure-openvpn/

So I created my vars, created Certificate Authority and server Certificate, and I am now trying to create client Certificates.

Image

However, when i type:

build-key-pass client1

and it askes me to type in the PEM pass phrase, I can not type anything. The keyboard just doesn't work, not even the virtual on screen keyboard.

Image


The keyboard doesnt work in command prompt just at this point. However I can click enter without filling the PEM in, but then it gives me a bunch of errors.

Image

Keep in mind that in that tutorial, he said to remove "-nodes " from build-key-pass.bat, if that means anything.

Whats the problem?

Re: OpenSSL error - unable to write random state

Posted: Mon Feb 27, 2012 11:57 am
by janjust
The error you're seeing is caused by the fact that OpenSSL tries to write the .rand file but fails to do so.
The default location for the RANDOM file in the easy-rsa setup is $KEY_DIR/.rand. but for this to work the KEY_DIR variable needs to point to a sensible directory.
You need to modify the vars.bat file before you can actually use it. Specify the right paths for the key files , and , the RANDOM file.