#1009186 Unable to import any ovpn config file

Package:
network-manager-openvpn-gnome
Source:
network-manager-openvpn
Description:
network management framework (OpenVPN plugin GNOME GUI)
Submitter:
Arnaldo Pirrone
Date:
2022-04-09 14:18:02 UTC
Severity:
important
Tags:
#1009186#5
Date:
2022-04-08 12:45:45 UTC
From:
To:
Hi,

When I try to import any saved vpn config, I get this error:

Can't create a new connection
The VPN plugin failed to import the VPN connection correctly:
Key file contains line "dev tun" which is not a key-value pair, group, or
comment

I know there was an issue that was preventing NetworkManager from importing
config files with inline certificates, but I think this has been sorted out a
long time ago, otherwise I can't explain how I was able to use it for such a
long time, also I currently have dozens of already saved VPN network
connections which I can't import again.

Can you please verify if this is also affecting your operations with
NetworkManager and report back?

Thank you

#1009186#10
Date:
2022-04-08 15:36:09 UTC
From:
To:
Am 08.04.22 um 14:45 schrieb Arnaldo Pirrone:

Can you share an example config file?

#1009186#15
Date:
2022-04-09 13:23:41 UTC
From:
To:
Sure:

the last I exported from pfSense looks like this, although they
previously had different options.
Just discovered this: if I put the p12 and key file away from the
directory, I am able to import the config file!
Then I put them back and the VPN connections work.
But if those files are inside the directory while importing then the
error message is right around the corner.
Hope this can help,


dev tun
persist-tun
persist-key
data-ciphers AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305:AES-256-CBC
data-ciphers-fallback AES-256-CBC
auth SHA256
tls-client
client
resolv-retry infinite
remote x.x.x.x 1194 udp4
nobind
verify-x509-name "xxxx" name
auth-user-pass
pkcs12 xxxx.p12
tls-auth xxxx.key 1
remote-cert-tls server
explicit-exit-notify


Il 08/04/22 alle 17:36, Michael Biebl ha scritto:

#1009186#20
Date:
2022-04-09 14:14:02 UTC
From:
To:
So I guess in order to reproduce the issue, I'd actually need the
xxxx.key and xxxx.p12 files and put them in the same directory as the
ovpn file?

Am 09.04.22 um 15:23 schrieb Arnaldo Pirrone: