bunglle wrote
Hi,
I have the same problem,
Gui start on windows startup but not my server ( server.ovpn and other file place in config directory) , I need to start the manually the server in gui.
In previous version of the service this operation work fine.
Any Idea ?
I went through this last night. First, the gui and the service are unrelated. Pick one or the other. Service for automation, gui for manual start.
The documentation seems to be very old. Here's how I sorted it out.
1) Put your server.ovpn in C:\Program Files\OpenVPN\config-auto
2) Create a text file called "stdin.txt" and put it in the same folder.
3) Open stdin.txt and put your server key passphrase and save. Then - and this is what caused me a headache last night - the file has to be ANSI encoded otherwise you'll get a key decrypt error and your server instance won't start. This is nowhere in the documentation. I couldn't find it by searching the internet either. I just guessed it was probably an encoding issue and guessed it should be ANSI. I guessed right. 😃
4) edit server.ovpn and add:
askpass "C:\\Program Files\\OpenVPN\\config-auto\\stdin.txt"
5) In svcs, change startup type for "OpenVPNService" to automatic and start the service. It should auto load server.ovpn and connect automatically.