Wpa supplicant: Difference between revisions

imported>Joeriexelmans
Add example of setting OpenSSL's SECLEVEL=0
imported>IgorM
m Fixed syntax highlighting
Line 31: Line 31:
A full example to connect to a university or similar network that uses MSCHAPV2 (like [https://confluence.uwf.edu/display/public/ArgoAir UWF]):
A full example to connect to a university or similar network that uses MSCHAPV2 (like [https://confluence.uwf.edu/display/public/ArgoAir UWF]):


<syntaxHighlight lang=nixos>
<syntaxHighlight lang=nix>
   networking.wireless.networks."uwf-argo-air" = {
   networking.wireless.networks."uwf-argo-air" = {
     hidden = true;
     hidden = true;
Line 49: Line 49:


From the shell terminal, use the <code>wpa_cli</code> command line tool and specify the network interface device with -g
From the shell terminal, use the <code>wpa_cli</code> command line tool and specify the network interface device with -g
<syntaxHighlight lang=bash>
<syntaxHighlight lang=text>
wpa_cli -g /run/wpa_supplicant/wlp3s0
wpa_cli -g /run/wpa_supplicant/wlp3s0
list_network
list_network
Line 57: Line 57:
As a means to debug if things are working, open another terminal and examine the logs by:
As a means to debug if things are working, open another terminal and examine the logs by:


<syntaxHighlight lang=bash>
<syntaxHighlight lang=console>
journalctl -u wpa_supplicant -f
$ journalctl -u wpa_supplicant -f
</syntaxHighlight>
</syntaxHighlight>


Line 116: Line 116:
When connecting to an institutional network fails, and something similar to following lines appear in the system log:
When connecting to an institutional network fails, and something similar to following lines appear in the system log:


<syntaxHighlight>
<syntaxHighlight lang=text>
mrt 31 17:17:19 t14 wpa_supplicant[727029]: SSL: SSL3 alert: write (local SSL3 detected an error):fatal:internal error
mrt 31 17:17:19 t14 wpa_supplicant[727029]: SSL: SSL3 alert: write (local SSL3 detected an error):fatal:internal error
mrt 31 17:17:19 t14 wpa_supplicant[727029]: OpenSSL: openssl_handshake - SSL_connect error:0A00014D:SSL routines::legacy sigalg disallowed or unsupported
mrt 31 17:17:19 t14 wpa_supplicant[727029]: OpenSSL: openssl_handshake - SSL_connect error:0A00014D:SSL routines::legacy sigalg disallowed or unsupported