Having issues writing script file for Windows Server 2008

How to customize and extend your OpenVPN installation.

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

Post Reply
shebmeister
OpenVpn Newbie
Posts: 2
Joined: Thu Feb 07, 2013 6:49 pm

Having issues writing script file for Windows Server 2008

Post by shebmeister » Tue Feb 12, 2013 12:49 am

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

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

Re: Having issues writing script file for Windows Server 200

Post by maikcat » Tue Feb 12, 2013 7:46 am

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.
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"

shebmeister
OpenVpn Newbie
Posts: 2
Joined: Thu Feb 07, 2013 6:49 pm

Re: Having issues writing script file for Windows Server 200

Post by shebmeister » Tue Feb 12, 2013 5:23 pm

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

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

Re: Having issues writing script file for Windows Server 200

Post by maikcat » Wed Feb 13, 2013 7:21 am

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.
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