In an 802.1x enterprise network, I can use NetworkManager to configure 802.1x parameters, including the password. This all works, but requires storing the password in cleartext.
We are trying to use Netplan to store the credentials more securely (as a hashed password), but we cannot make the 802.1x connections authenticate.
I haven't been able to find a good guide for building a Netplan configuration that includes 802.1x credentials.
(UPDATE: There is a bug in Netplan about hashed password, https://github.com/CanonicalLtd/netplan/pull/78), which seems to be the main issue)
Here is a file that does not work
network: version: 2 renderer: networkd ethernets: enp0s31f6: auth: key-management: 802.1x password: hash:some-stuff-here method: peap identity: ghewett dhcp4: false addresses: - 18.104.22.168 gateway4: 22.214.171.124 nameservers: search: [cisco.com, otherdomain] addresses: - 126.96.36.199 - 188.8.131.52
(IP's and credentials changed )
This gives us
DEBUG:command generate: running ['/lib/netplan/generate'] ** (generate:19354): DEBUG: 09:23:41.614: Processing input file /etc/netplan/01-netcfg.yaml.. ** (generate:19354): DEBUG: 09:23:41.614: starting new processing pass Error in network definition /etc/netplan/01-netcfg.yaml line 7 column 6: unknown key auth