nmcli: Connection activation failed: no valid VPN secrets.
I have the following setup:
[connection]
id=My connection name
uuid=aa-bb-cc-dd
type=vpn
permissions=user:theuser:;
[vpn]
service-type=org.freedesktop.NetworkManager.openvpn
connection-type=tls
remote=xxx.xxx.xxx.xxx
cipher=BF-CBC
comp-lzo=yes
tunnel-mtu=1400
cert-pass-flags=1
port=xxxx
cert=/home/theuser/.vpn/key.p12
ca=/home/theuser/.vpn/key.p12
key=/home/theuser/.vpn/key.p12
tls-remote=xxx.xxx.xxx.xxx
[ipv4]
method=auto
When I'm logged into the default ubuntu session I can type nmcli con up id "My connection name"
which will setup the VPN respectively.
Executing exactly the same under i3 gives me:
Error: Connection activation failed: no valid VPN secrets.
I am logged in with the same user and do not execute the nmcli
-command under root.
What do I miss?
I am not entirely sure about what’s the problem, so I’m not going to write this as an answer, but it sounds like this is a (gnome-)keyring problem?