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

tls-auth key-direction parameter missing #1

Open Kegelcizer opened 4 years ago

Kegelcizer commented 4 years ago

tls-auth ta.key 1 Example line above is replaced correctly, but the key direction parameter 1 is ignored, thus the merged config fails to connect.

I've fixed this by adding key-direction 1 to the config file. Can this be added automatically by the script? Expected values are 0, 1 and bidirectional; and can be passed to key-direction

labbots commented 4 years ago

@Kegelcizer I believe we could detect the second parameter and set the key-direction. I will implement this shortly.