How to create .ovpn with inline certs

Scripts to manage certificates or generate config files
Post Reply
atom63
OpenVpn Newbie
Posts: 3
Joined: Mon Mar 02, 2020 10:29 pm

How to create .ovpn with inline certs

Post by atom63 » Mon Mar 02, 2020 10:36 pm

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

User avatar
Pippin
Forum Team
Posts: 797
Joined: Wed Jul 01, 2015 8:03 am

Re: How to create .ovpn with inline certs

Post by Pippin » Mon Mar 02, 2020 10:40 pm

Just open the files in a text editor.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 7319
Joined: Fri Jun 03, 2016 1:17 pm

Re: How to create .ovpn with inline certs

Post by TinCanTech » Tue Mar 03, 2020 8:24 am

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 .."

atom63
OpenVpn Newbie
Posts: 3
Joined: Mon Mar 02, 2020 10:29 pm

Re: How to create .ovpn with inline certs

Post by atom63 » Thu Mar 05, 2020 10:40 am

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

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 7319
Joined: Fri Jun 03, 2016 1:17 pm

Re: How to create .ovpn with inline certs

Post by TinCanTech » Thu Mar 05, 2020 1:07 pm

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.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 7319
Joined: Fri Jun 03, 2016 1:17 pm

Re: How to create .ovpn with inline certs

Post by TinCanTech » 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.

atom63
OpenVpn Newbie
Posts: 3
Joined: Mon Mar 02, 2020 10:29 pm

Re: How to create .ovpn with inline certs

Post by atom63 » Fri Mar 06, 2020 7:56 am

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

Post Reply