Page 1 of 1

key.txt in config file

Posted: Tue Jun 21, 2011 1:57 am
by mikeo1313
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.

:?:

Re: key.txt in config file

Posted: Tue Jun 21, 2011 6:55 am
by maikcat
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.

Re: key.txt in config file

Posted: Tue Jun 21, 2011 4:56 pm
by mikeo1313
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

Re: key.txt in config file

Posted: Wed Jun 22, 2011 6:33 am
by maikcat
>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.

Re: key.txt in config file

Posted: Wed Jun 22, 2011 7:38 am
by janjust
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.