I’m using the dbus interface to create a new wifi network connection, however the password is not being written to disk at /etc/NetworkManager/system-connections/ID_wifi.nmconnection
.
The config lacks the psk=
entry:
cat /etc/NetworkManager/system-connections/ID_wifi.nmconnection
[connection]
id=ID_wifi
uuid=f0430ef1-953a-439d-91f8-0053691d7566
type=wifi
autoconnect-priority=101
permissions=
[wifi]
mac-address-blacklist=
mode=infrastructure
ssid=SOME_SSID
[wifi-security]
auth-alg=open
key-mgmt=wpa-psk
...
For comparison a connection created through the balena dashboard does have the psk=
entry
cat /etc/NetworkManager/system-connections/somewifi.nmconnection
[connection]
id=somewifi
uuid=ba9630cd-e809-461a-956b-cb41e4e4354e
type=wifi
permissions=
[wifi]
mac-address-blacklist=
mode=infrastructure
ssid=somewifi
[wifi-security]
auth-alg=open
key-mgmt=wpa-psk
psk=somewifipw8
[ipv4]
dns-search=
method=auto
[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto
[proxy]
I tried configuring using the psk-flags=0
entry in the [wifi-security]
section, but that seems to not work.
Does anyone have experience with this?