Vars.bat Help

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

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

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
kalinichenko
OpenVpn Newbie
Posts: 7
Joined: Thu Jun 23, 2011 9:31 pm

Vars.bat Help

Post by kalinichenko » Fri Jun 24, 2011 5:40 am

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*

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Vars.bat Help

Post by maikcat » Fri Jun 24, 2011 7:34 am

hi there,


what windows version + openvpn version are you using?

you can always edit vars.bat and see what is trying to do...

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

kalinichenko
OpenVpn Newbie
Posts: 7
Joined: Thu Jun 23, 2011 9:31 pm

Re: Vars.bat Help

Post by kalinichenko » Fri Jun 24, 2011 7:51 am

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

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Vars.bat Help

Post by maikcat » Fri Jun 24, 2011 8:04 am

sorry wrong file...

>:\Program Files\OpenVPN\easy-rsa>clean-all
>The system cannot find the file specified.

something inside clean-all fails...

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

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

Re: Vars.bat Help

Post by janjust » Fri Jun 24, 2011 8:05 am

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

Code: Select all

set KEY_NAME=""
Using "set KEY_NAME=" has the effect of UNsetting the variable.

kalinichenko
OpenVpn Newbie
Posts: 7
Joined: Thu Jun 23, 2011 9:31 pm

Re: Vars.bat Help

Post by kalinichenko » Fri Jun 24, 2011 8:18 am

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?

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

Re: Vars.bat Help

Post by janjust » Fri Jun 24, 2011 8:22 am

the challenge password is optional and in 99% of the cases you won't need one - just hit enter.

kalinichenko
OpenVpn Newbie
Posts: 7
Joined: Thu Jun 23, 2011 9:31 pm

Re: Vars.bat Help

Post by kalinichenko » Fri Jun 24, 2011 8:32 am

Finished with Generating Diffie Hellman parameters without any errors or such,should i move on to Creating configuration files for server and clients?

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Vars.bat Help

Post by maikcat » Fri Jun 24, 2011 8:44 am

if build-ca and build-key-server reported no error

go ahead and create configs and client keys.

Michael
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

kalinichenko
OpenVpn Newbie
Posts: 7
Joined: Thu Jun 23, 2011 9:31 pm

Re: Vars.bat Help

Post by kalinichenko » Fri Jun 24, 2011 8:48 am

Heres a screenshot of the keys
Image

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Vars.bat Help

Post by maikcat » Fri Jun 24, 2011 8:50 am

all seems ok...

move on

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

kalinichenko
OpenVpn Newbie
Posts: 7
Joined: Thu Jun 23, 2011 9:31 pm

Re: Vars.bat Help

Post by kalinichenko » Fri Jun 24, 2011 8:53 am

ummm im stuck,what should i type next?Got confused :oops:

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Vars.bat Help

Post by maikcat » Fri Jun 24, 2011 9:35 am

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..)
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Post Reply