Windows Server 2008 R2 build-ca error

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
nicolasg
OpenVpn Newbie
Posts: 19
Joined: Thu Mar 03, 2011 4:07 pm

Windows Server 2008 R2 build-ca error

Post by nicolasg » Wed May 02, 2012 12:09 pm

Dear All,

I'm running a Windows Server 2008 R2 with the latest updates and have OpenVPN 2.2.2 with all the components selected to be installed where it will act as a OpenVPN server for other windows clients to connect.

When running the build-ca.bat I got the following error :
WARNING: can't open config file: c:/openssl/ssl/openssl.cnf
unknown option Files
I have set the correct path in vars.bat for the KEY_CONFIG variable (set KEY_CONFIG=C:\Program Files (x86)\OpenVPN\easy-rsa\openssl-1.0.0.cnf) but the problem still exsit.

For that reason I had to copy the openssl.cnf file under c:\openssl\ssl to avoid the above error.

It seems now I'm stuck with a different error message :
C:\Program Files (x86)\OpenVPN\easy-rsa>vars.bat
C:\Program Files (x86)\OpenVPN\easy-rsa>clean-all.bat
1 file(s) copied.
1 file(s) copied.
C:\Program Files (x86)\OpenVPN\easy-rsa>build-ca.bat
864:error:0E065068:configuration file routines:STR_COPY:variable has no value:.\
crypto\conf\conf_def.c:618:line 123
Does anyone have any clue what's wrong ?

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

Re: Windows Server 2008 R2 build-ca error

Post by janjust » Wed May 02, 2012 1:09 pm

line 123 of your openssl.cnf file points to an environment variable that is not set; check the openssl.cnf file to see which var is it; Add it to the 'vars.bat' file and try again.

nicolasg
OpenVpn Newbie
Posts: 19
Joined: Thu Mar 03, 2011 4:07 pm

Re: Windows Server 2008 R2 build-ca error

Post by nicolasg » Wed May 02, 2012 1:21 pm

Thanks, it seems to work.

Post Reply