key.txt in config file

Need help configuring your VPN? Just post here and you'll get that help.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
mikeo1313
OpenVpn Newbie
Posts: 3
Joined: Sat May 30, 2009 1:18 am

key.txt in config file

Post by mikeo1313 » Tue Jun 21, 2011 1:57 am

This configuration

dev tap
ifconfig 10.3.0.1 255.255.255.0
key.txt
ping 10
comp-lzo
verb 4
mute 10


gives me:

Connecting to sample has failed

Options error: Unrecognized option or missing parameter(s) in sample.ovpn:78: key.txt (2.2.0)
Use --help for more information.

-----

-UNLESS I comment it out
;key.txt
thus having an 'undef' key.


I'm on windows 7 x86 but also intend to use with x64.

-I read somewhere you have to put the complete path to files, is this true?
-I also read that with x64 even if you put the path, openvpn config files have to be copied to \program files\ from \program files(x86)\ or else it won't work.

:?:

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

Re: key.txt in config file

Post by maikcat » Tue Jun 21, 2011 6:55 am

hi there,

the format inside config files are

statement parameter

so,
key.txt

is a parameter without statement...

please read this..

http://www.openvpn.net/index.php/open-s ... howto.html

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"

mikeo1313
OpenVpn Newbie
Posts: 3
Joined: Sat May 30, 2009 1:18 am

Re: key.txt in config file

Post by mikeo1313 » Tue Jun 21, 2011 4:56 pm

ok, got it to work.


now while trying to build-dh I get:

warning: can't open config file: c:\openssl/ssl/openssl.cnf .... ... ..
though it does output a dh

when tring to build-ca I get the same as above plus:

error on line 150 of openssl.cnf
2648:error:0e065068:configuration file routines:str_copy:variable has no value:.\crypto\conf\conf_def.c:610:line 150


The openssl.cnf file I have is the latest. clean-all works. I'm using windows 7

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

Re: key.txt in config file

Post by maikcat » Wed Jun 22, 2011 6:33 am

>warning: can't open config file: c:\openssl/ssl/openssl.cnf .... ... .

it searches in wrong file location...

are you using 32 or 64 bit?

which version did you installed?

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: key.txt in config file

Post by janjust » Wed Jun 22, 2011 7:38 am

now while trying to build-dh I get:

warning: can't open config file: c:\openssl/ssl/openssl.cnf .... ... ..
though it does output a dh
this is an artifact of the openssl binaries that come with openvpn 2.2 ; you can ignore this warning
when tring to build-ca I get the same as above plus:

error on line 150 of openssl.cnf
2648:error:0e065068:configuration file routines:str_copy:variable has no value:.\crypto\conf\conf_def.c:610:line 150
you probably forgot to load the 'vars.bat' file first - see the HOWTO http://openvpn.net/index.php/open-sourc ... o.html#pki for details.

Post Reply