On Ubuntu 16.04, for setting up a WiFi access under WPA Enterprise TLS, generated a PEM RSA private key
as follows:
$ cd ~/.wifi_certificates
$ keyPassPhrase="$(pwgen -snc1 16)"
$ echo "key=${keyPassPhrase}" > key_passphrase
$ chmod og-r key_passphrase
$ clientName=`uname -n` # themc
$ openssl genrsa -aes256 -passout pass:"${keyPassPhrase}" -out ${clientName}.key 2048
$ file ${clientName}.key
themc.key: PEM RSA private key
Eventually, attempted to provide themc.key
file to the WiFi GUI -- but as seen in the screenshot below, the GUI's directory-browser will not allow selecting themc.key
as a PEM Private Key
file:
Although screenshot shows Identity
, User certificate
and CA certificate
fields as empty, ran into same issue even when all these fields had suitable values.
Also tried to just enter the value themc.key
in the file /etc/NetworkManager/system-connections/<connection>
but, when attempting to establish the connection, get a pop-up about themc.key
not being acceptable.
Creating a wpa_supplicant.conf
file with the same certificates and key as used for NetworkManager and providing that wpa_supplicant.conf
file to wpa_supplicant
results in a successful connection.
Questions: Why doesn't the GUI accept themc.key
as a PEM private key
even though the file
command classifies themc.key
as a PEM RSA private key
? Why is NetworkManager
not happy with themc.key
but wpa_supplicant
is?