labbots / OVPN-Config-Manipulator

Bash script to merge/split OVPN files. Open VPN config file (.ovpn) contains several certificates and key files which are required for the setup. This script allows you to merge those certificates and keys into single config file. The script can also be used to split a single self-contained ovpn config file to individual config and cert files.
MIT License
20 stars 3 forks source link

cert and key lines feature #3

Open Kegelcizer opened 4 years ago

Kegelcizer commented 4 years ago

I'm using a generic sample.ovpn with

cert sample.crt
key sample.key

After I generate a certificate for client1-laptop, I can use the merge script only if they are edited to

cert client1-laptop.crt
key client1-laptop.key

For me this breaks the automate process. Can an optional parameter be added to specific that sample needs to be searched instead of client1-laptop?

labbots commented 4 years ago

@Kegelcizer Thanks for reporting it. I will investigate for alternate solution for your usecase.