Spaces in certificate files breaks OpenVPN
When a certificate file has a space in it, the VPN fails. The easy workaround is to simply rename the certificate file, but it takes digging through the log lines to figure out why.
I had originally imported the VPN from configuration sent to me by my employer. It imported fine with no problem. I think that's where the file name came from. It wasn't a name that I chose.
The first line I found in the log was this:
Options error: Please correct these errors.
The second line that was more helpful was:
Options error: --ca fails with '/home/skp/.cert/nm-openvpn/vpn-UDP4-1194-config%20(1)-ca.pem': No such file or directory (errno=2)
If it helps, this is what I am running:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
Network Manager version
$ nmcli --version
nmcli tool, version 1.10.6
$ dpkg -l network-manager
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii network-manage 1.10.6-2ubun amd64 network management framework (dae
$ dpkg -l | grep network-manager-openvpn
ii network-manager-openvpn 1.8.2-1 amd64 network management framework (OpenVPN plugin core)
ii network-manager-openvpn-gnome 1.8.2-1 amd64 network management framework (OpenVPN plugin GNOME GUI)
My notes are on my blog, but I think this is all of the critical information: https://linuxsagas.digitaleagle.net/2018/07/26/troubleshooting-open-vpn-connection/