Page 1 of 1

Windows Server 2008 R2 build-ca error

Posted: Wed May 02, 2012 12:09 pm
by nicolasg
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 ?

Re: Windows Server 2008 R2 build-ca error

Posted: Wed May 02, 2012 1:09 pm
by janjust
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.

Re: Windows Server 2008 R2 build-ca error

Posted: Wed May 02, 2012 1:21 pm
by nicolasg
Thanks, it seems to work.