Page 1 of 1

Having issues writing script file for Windows Server 2008

Posted: Tue Feb 12, 2013 12:49 am
by shebmeister
I am having issues writing a script file to connect to an openvpn server from a windows Server 2008 box.
When I connect thru the GUI everything is bitchin'!
When I try o connect from a .cmd file using the same config file, I get errors.
--------------------
In the log file I get:
------------------
NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Enter Private Key Password:
Mon Feb 11 16:06:25 2013 ERROR: could not not read Private Key password from stdin
--------------------

Thanks in advance for any help that might come this way.
-the sheb

Re: Having issues writing script file for Windows Server 200

Posted: Tue Feb 12, 2013 7:46 am
by maikcat
NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Enter Private Key Password:
Mon Feb 11 16:06:25 2013 ERROR: could not not read Private Key password from stdin
did you protected your private key with a password?

Michael.

Re: Having issues writing script file for Windows Server 200

Posted: Tue Feb 12, 2013 5:23 pm
by shebmeister
Michael,
This client file was created for me. I have no idea whether the private key was password protected.

I do know this from reading the forums, Getting help in Windows is not that easy.

Again.... the gui works fine.
Put the commands in a command file and it does not work the same.

One more thing....
When I add " -- script-security 2 in my nothing happens

Here's my ovpn file:
----------------------------------------------client
remote customer.given.com 1194
dev tap
proto tcp
nobind
ca ca.crt
cert file2.crt
key file2.key
route-method exe
verb 3
comp-lzo
--auth-user-pass login.conf
tls-auth ta.key 1
-------------------------------------
names have been changed above tho protect the innocent

Re: Having issues writing script file for Windows Server 200

Posted: Wed Feb 13, 2013 7:21 am
by maikcat
your config uses user/pass auth also,

can you ask the one that gave you the config if he password
protected the key file?

when you start the gui,is it prompts you for a password?

Michael.