Page 1 of 1

Create ovpn client file

Posted: Fri Mar 04, 2011 4:49 pm
by dad311
Is is possible to merge all the client files (.crt, .key, etc) into on .ovpn file? Is so how?


Thanks!

Re: Create ovpn client file

Posted: Fri Mar 04, 2011 8:13 pm
by Douglas
dad311 wrote:Is is possible to merge all the client files (.crt, .key, etc) into on .ovpn file? Is so how?


Thanks!
I don't believe so, but it might be interesting to find out there is. I'll keep an eye on this.

Re: Create ovpn client file

Posted: Fri Mar 04, 2011 10:01 pm
by janjust
with openvpn 2.1 it is: use the newer XML-style format:

cert [inline]
key [inline]
ca [inline]

<cert>
... insert client.crt here
</cert>

<key>
... insert client.crt here
</key>

<ca>
... insert client.crt here
</ca>

Re: Create ovpn client file

Posted: Tue Mar 08, 2011 8:12 am
by maikcat
>with openvpn 2.1 it is: use the newer XML-style format:

didnt know that.

thank you janjust.

ps:also for tls add: tls-auth [inline] 1
<tls-auth>
key...
</tls-auth>

michael.

Re: Create ovpn client file

Posted: Thu Dec 22, 2011 12:08 pm
by shinjikenny
i tried this but it didn't work? :lol:

<auth-user-pass>
username
password
</auth-user-pass>


can someone tell me how to include auth-user-pass on the ovpn file?

Re: Create ovpn client file

Posted: Thu Dec 22, 2011 12:27 pm
by janjust
very simple: you can't. if openvpn is compiled with the right settings you can store the username+password in a file, but you cannot store it inside the config file.

Re: Create ovpn client file

Posted: Wed Mar 02, 2016 1:12 pm
by shamka
and how add files up.sh and down.sh in the configuration file?

example (don't work):
<up>
commands
</up>
<down>
commands
</down>