OpenSSL error - unable to write random state

All comments and questions related to the functionality of the OpenVPN web pages and forum should go here.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
Illuminante
OpenVpn Newbie
Posts: 1
Joined: Fri Feb 24, 2012 11:06 pm

OpenSSL error - unable to write random state

Post by Illuminante » Fri Feb 24, 2012 11:21 pm

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?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenSSL error - unable to write random state

Post by janjust » Mon Feb 27, 2012 11:57 am

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.

Post Reply