The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

nmcli: Connection activation failed: no valid VPN secrets.

asked May 12 '14

Weishaupt gravatar image

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?

Comments

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?

Michael gravatar imageMichael (May 25 '14)edit

1 answer

Sort by » oldest newest most voted
0

answered May 16 '14

bonidydy gravatar image

My configuration looks like this and works:

[connection]
id=my_connection
uuid=x-y-z
type=vpn
autoconnect=false
timestamp=1394900890

[vpn]
service-type=org.freedesktop.NetworkManager.pptp
password-flags=0
require-mppe=yes
user=my_user_name
refuse-eap=yes
refuse-chap=yes
nobsdcomp=yes
gateway=xx.xx.xx.xx
domain=my_domain
refuse-pap=yes

[vpn-secrets]
password=my_password

[ipv4]
method=auto

Important is to add "password-flags=0" and "password=my_password". Otherwise Network Manager tries to get the data from gnome keyring. Your case looks even more complicated as some keys are used :).

Comments

This config doesn't help me, as I'm using TLS. The thing is though, it works in Unity but won't work in i3.

Weishaupt gravatar imageWeishaupt (May 18 '14)edit

Question Tools

Stats

Asked: May 12 '14

Seen: 2,313 times

Last updated: May 16 '14