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

[inline] lines failed to parse #2

Open Kegelcizer opened 4 years ago

Kegelcizer commented 4 years ago

After a successful merge these lines are added to the config file:

ca [inline]
cert [inline]
key [inline]
tls-auth [inline]

Script run example:

./OVPN-config-manipulator.sh -m=auto \
    -s /home/vpn/client-laptop/client-laptop.ovpn \
    --ca /home/vpn/client-laptop/ca.crt \
    --cert /home/vpn/client-laptop/client-laptop.crt \
    --key /home/vpn/client-laptop/client-laptop.key \
    --tls-auth /home/vpn/client-laptop/ta.key

Both OpenVPN GUI and OpenVPN Connect fail to parse it. Fixed it by removing or commenting them. Am I doing something wrong or is it a bug?

Thank you.