Page 1 of 1
Vars.bat Help
Posted: Fri Jun 24, 2011 5:40 am
by kalinichenko
First of all im a noob.I've been following the Howto guide;got to the vars.bat part and i keep getting this error
C:\Program Files\OpenVPN\easy-rsa>vars
C:\Program Files\OpenVPN\easy-rsa>clean-all
The system cannot find the file specified.
1 file(s) copied.
1 file(s) copied.
C:\Program Files\OpenVPN\easy-rsa>build-ca
error on line 120 of openssl.cnf
3796:error:0E065068:configuration file routines:STR_COPY:variable has no value:.
\crypto\conf\conf_def.c:629:line 120
I was wondering if anyone could help me on what i should type into the vars.bat.A screenshot would be very helpful.thanks
*sorry for my english*
Re: Vars.bat Help
Posted: Fri Jun 24, 2011 7:34 am
by maikcat
hi there,
what windows version + openvpn version are you using?
you can always edit vars.bat and see what is trying to do...
Michael.
Re: Vars.bat Help
Posted: Fri Jun 24, 2011 7:51 am
by kalinichenko
Hey maikcat
Im on Windows 7(32bit) and im using openvpn-2.1.4.
heres whats inside the vars.bat i edited.
Code: Select all
set KEY_COUNTRY=GH
set KEY_PROVINCE=NA
set KEY_CITY=Accra
set KEY_ORG=NA
set KEY_EMAIL=deuploader@gmail.com
Re: Vars.bat Help
Posted: Fri Jun 24, 2011 8:04 am
by maikcat
sorry wrong file...
>:\Program Files\OpenVPN\easy-rsa>clean-all
>The system cannot find the file specified.
something inside clean-all fails...
Michael.
Re: Vars.bat Help
Posted: Fri Jun 24, 2011 8:05 am
by janjust
the following vars need to be set in vars.bat :
- KEY_DIR
KEY_SIZE
KEY_COUNTRY
KEY_PROVINCE
KEY_CITY
KEY_ORG
KEY_EMAIL
KEY_OU
KEY_CN
KEY_NAME
PKCS11_MODULE_PATH
PKCS11_PIN
some of them are set by the scripts, but it won't hurt to set all of these in vars.bat either; this is DOS, so use
Using "set KEY_NAME=" has the effect of UNsetting the variable.
Re: Vars.bat Help
Posted: Fri Jun 24, 2011 8:18 am
by kalinichenko
I've reinstall the OpenVpn software and for some reason i didn't get the error again,managed to provide Country name,state etc.What should i input at challenge pasword?
Re: Vars.bat Help
Posted: Fri Jun 24, 2011 8:22 am
by janjust
the challenge password is optional and in 99% of the cases you won't need one - just hit enter.
Re: Vars.bat Help
Posted: Fri Jun 24, 2011 8:32 am
by kalinichenko
Finished with Generating Diffie Hellman parameters without any errors or such,should i move on to Creating configuration files for server and clients?
Re: Vars.bat Help
Posted: Fri Jun 24, 2011 8:44 am
by maikcat
if build-ca and build-key-server reported no error
go ahead and create configs and client keys.
Michael
Re: Vars.bat Help
Posted: Fri Jun 24, 2011 8:48 am
by kalinichenko
Heres a screenshot of the keys

Re: Vars.bat Help
Posted: Fri Jun 24, 2011 8:50 am
by maikcat
all seems ok...
move on
Michael.
Re: Vars.bat Help
Posted: Fri Jun 24, 2011 8:53 am
by kalinichenko
ummm im stuck,what should i type next?Got confused

Re: Vars.bat Help
Posted: Fri Jun 24, 2011 9:35 am
by maikcat
you must create openvpn server configuration file....
for more info please read howto docs from openvpn.net site (documentation)
Michael.
ps: first think what exactly you want to do (client to lan , lan-to-lan , bridging..)