NetworkManager breaks OpenVPN configuration on connection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager-openvpn (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
A previously working OpenVPN configuration stopped connecting, with nm-openvpn complaining about wrong options:
mar 07 22:35:45 michal-laptop NetworkManager[
mar 07 22:35:45 michal-laptop NetworkManager[
mar 07 22:35:45 michal-laptop NetworkManager[
mar 07 22:35:45 michal-laptop NetworkManager[
mar 07 22:35:45 michal-laptop NetworkManager[
mar 07 22:35:45 michal-laptop nm-openvpn[26190]: Options error: If you use one of --cert or --key, you must use them both
mar 07 22:35:45 michal-laptop nm-openvpn[26190]: Use --help for more information.
mar 07 22:35:45 michal-laptop NetworkManager[
mar 07 22:35:45 michal-laptop NetworkManager[
mar 07 22:35:45 michal-laptop NetworkManager[
mar 07 22:35:45 michal-laptop NetworkManager[
mar 07 22:35:45 michal-laptop NetworkManager[
The config, however, includes correct ca/cert/key stanzas:
ca=<redacted>ca.crt
cert=<redacted>
key=<redacted>
The attached screenshot shows a related breakage in the GUI, after making the correct certificate/key file selections, and saving the config, the config file gets broken indeed:
ca=<redacted>ca.crt
cert=<redacted>
# no key entry at all
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: network-
ProcVersionSign
Uname: Linux 4.15.0-10-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Wed Mar 7 22:32:57 2018
SourcePackage: network-
UpgradeStatus: Upgraded to bionic on 2018-02-07 (28 days ago)
Downgrading to the previous version fixes this issue:
LANG=C apt policy network- manager- openvpn* manager- openvpn: archive. ubuntu. com/ubuntu bionic/main amd64 Packages dpkg/status manager- openvpn- gnome: archive. ubuntu. com/ubuntu bionic/universe amd64 Packages dpkg/status
network-
Installed: 1.2.10-0ubuntu2
Candidate: 1.8.0-2
Version table:
1.8.0-2 500
500 http://
*** 1.2.10-0ubuntu2 100
100 /var/lib/
network-
Installed: 1.2.10-0ubuntu2
Candidate: 1.8.0-2
Version table:
1.8.0-2 500
500 http://
*** 1.2.10-0ubuntu2 100
100 /var/lib/