I’m on Manjaro stable KDE edition. I have a few openvpn configurations ( .ovpn
files). I’m able to setup VPN connections graphically using Settings → (Network) Connections → + → Import VPN connection. It copies some certificates to ~/.local/share/...
, further, I can enter username and password in the detailed settings screen, and the password is stored encrypted.
How do I do exactly the same setup using CLI? This will help me automate my setup.
Importing ovpn
file using nmcli works:
nmcli conn import type openvpn file <my-ovpn-file>
How do I add username and password to this connection, and ensure that the password is stored encrypted?