Page 1 of 1

How to create .ovpn with inline certs

Posted: Mon Mar 02, 2020 10:36 pm
by atom63
Hello, my openvpn server on ubuntu creates ovpn client's config file with inline certs and key, but i try to start openvpn server on windows with default settings and it creates config with separated certs and key files. How can i configure openvpn behaviour on windows like linux? I looked at this https://community.openvpn.net/openvpn/w ... nPage#lbAV but it says only an oppurtunity to store all-in-one not about how to generate it. Thanks

Re: How to create .ovpn with inline certs

Posted: Mon Mar 02, 2020 10:40 pm
by Pippin
Just open the files in a text editor.

Re: How to create .ovpn with inline certs

Posted: Tue Mar 03, 2020 8:24 am
by TinCanTech
EasyRSA ought to be able to do this but ..

User: "Hey computer, do this incredibly repetitive and useful task for me"
Computer: "ecrist says no .."

Re: How to create .ovpn with inline certs

Posted: Thu Mar 05, 2020 10:40 am
by atom63
Pippin wrote:
Mon Mar 02, 2020 10:40 pm
Just open the files in a text editor.
I mean generate config with inline certs not manually copy and paste it

Re: How to create .ovpn with inline certs

Posted: Thu Mar 05, 2020 1:07 pm
by TinCanTech
You can clone my git repo:
https://github.com/TinCanTech/easy-rsa/commits/master

and reset head to commit:
3f9fc4fa5fd8d89cce350cd3d7696112cbae14b6

Other than that, you can write your own utility or use a text editor.

Re: How to create .ovpn with inline certs

Posted: Thu Mar 05, 2020 1:39 pm
by TinCanTech
What the hell ..

Download easyrsa3 release:
https://github.com/OpenVPN/easy-rsa/releases

Then download the easyrsa script from here:
https://github.com/TinCanTech/easyrsa-plus

and over write the original with this one, which does do inline.

Re: How to create .ovpn with inline certs

Posted: Fri Mar 06, 2020 7:56 am
by atom63
TinCanTech wrote:
Thu Mar 05, 2020 1:39 pm
What the hell ..

Download easyrsa3 release:
https://github.com/OpenVPN/easy-rsa/releases

Then download the easyrsa script from here:
https://github.com/TinCanTech/easyrsa-plus

and over write the original with this one, which does do inline.
Thanx i will try