Network Manager - Imported ovpn File not working

Importing an ovpn File resulting in a broken VPN Client.

I tested it on another system (Manjaro and macOS) where it worked without a problem.

The ovpn File

client
dev tun
proto udp
remote openvpn.domain.tld 1194
auth-user-pass
auth-nocache
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
ignore-unknown-option block-outside-dns
block-outside-dns
verb 3
<ca>
-----BEGIN CERTIFICATE-----
cert
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
cert
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
priv-key
-----END PRIVATE KEY-----
</key>
<tls-crypt>
-----BEGIN OpenVPN Static key V1-----
tls-crypt-key
-----END OpenVPN Static key V1-----
</tls-crypt>
Ignore this

Ignore ~ Words / Stuff for search

OpenVPN Client Not Wokring
Import of ovpn file not working
Network Manager vpn import resulting in vpn client not working.

When importing the ovpn file I accepted this dialogue with Yes

This worked as intended?
Kinda?! It missed the tls-crypt Key and did not configure it.

So I took the Key

-----BEGIN OpenVPN Static key V1-----
tls-crypt-key
-----END OpenVPN Static key V1-----

Threw it into a file /home/$user/.local/share/networkmanagement/certificates/ovpn-client-import/tls.key

Opened the Advanced configuration of this vpn client, open the TLS Settings tab and put in the file.

Now my VPN Client is working as intended.

3 Likes