Page 1 of 1

How to start OpenVPN as service under windows

Posted: Tue Oct 11, 2011 3:01 pm
by Jane
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

Re: How to start OpenVPN as service under windows

Posted: Tue Oct 11, 2011 3:12 pm
by janjust
normally , openvpn is launched from the 'OpenVPN\config' folder: try placing the cert+key files there.

Re: How to start OpenVPN as service under windows

Posted: Wed Oct 12, 2011 7:26 am
by Jane
Thanks for help.Now it works