How to start OpenVPN as service under windows

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
Jane
OpenVpn Newbie
Posts: 10
Joined: Thu Sep 29, 2011 1:48 pm

How to start OpenVPN as service under windows

Post by Jane » Tue Oct 11, 2011 3:01 pm

I can start OpenVPN from console(CMD command) under windows, but can not start it as a service.Log says:

Tue Oct 11 16:55:58 2011 OpenVPN 2.2.1 Win32-MSVC++ [SSL] [LZO2] built on Jul 1 2011
Tue Oct 11 16:55:58 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Oct 11 16:55:58 2011 Cannot load certificate file client1.crt: error:02001002:system library:fopen:No such file or directory: error:20074002:BIO routines:FILE_CTRL:system lib: error:140AD002:SSL routines:SSL_CTX_use_certificate_file:system lib
Tue Oct 11 16:55:58 2011 Exiting

Where can I set a path to client1.crt?
I have that certificate in \OpenVPN\bin directory

Thanks for help

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

Re: How to start OpenVPN as service under windows

Post by janjust » Tue Oct 11, 2011 3:12 pm

normally , openvpn is launched from the 'OpenVPN\config' folder: try placing the cert+key files there.

Jane
OpenVpn Newbie
Posts: 10
Joined: Thu Sep 29, 2011 1:48 pm

Re: How to start OpenVPN as service under windows

Post by Jane » Wed Oct 12, 2011 7:26 am

Thanks for help.Now it works

Post Reply