Optional libraries for EAP-TLS, EAP-PEAP, and EAP-TTLS:
- OpenSSL (tested with 1.0.1 and 1.0.2 versions; assumed to work with most relatively recent versions; this is likely to be available with most distributions, http://www.openssl.org/) - GnuTLS - internal TLSv1 implementation
cd ~/Documents wget https://www.openssl.org/source/old/1.0.1/openssl-1.0.1u.tar.gz tar -zxvf openssl-1.0.1u.tar.gz cd openssl-1.0.1u
1.3 编译安装openssl
进入openssl-1.0.1u文件夹,执行以下命令安装openssl
1 2 3 4 5 6 7 8 9 10 11 12 13
cd ~/Documents cd openssl-1.0.1u ./config --openssldir=/usr/local/bin/openssl-1.0.1u shared sudo make sudo make install ls -l /usr/bin/openssl openssl version -a sudo mv /usr/bin/openssl /usr/bin/openssl_old
sudo ln -s /usr/local/bin/openssl-1.0.1u/bin/openssl /usr/bin/openssl ls -l /usr/bin/openssl openssl_old version -a openssl version -a
cd ~/Documents cd wpa_supplicant-2.10/wpa_supplicant cp defconfig .config ls -l .config sudo ln -s /usr/local/bin/openssl-1.0.1u/lib/libcrypto.so /usr/lib/libcrypto.so sudo make sudo make install wpa_supplicant -v
最后输出结果如下:
1 2
wpa_supplicant v2.10 Copyright (c) 2003-2022, Jouni Malinen <j@w1.fi> and contributors
1.6 编译结果
在wpa_supplicant文件下可以看到编译后的可执行文件
1 2 3
cd ~/Documents cd wpa_supplicant-2.10/wpa_supplicant file * | grep "ELF"
结果如下
1 2 3
wpa_cli: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=1ecc67063a6d45d7432f9d946a7ae3f2642cb47d, for GNU/Linux 3.2.0, with debug_info, not stripped wpa_passphrase: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=e6a666c4d5153295dbb1dc6c148bdac707a1dd82, for GNU/Linux 3.2.0, with debug_info, not stripped wpa_supplicant: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=49e7bf7c341bc72ceac844ef90f5ba3ad30fefd1, for GNU/Linux 3.2.0, with debug_info, not stripped
编译结果中有3个软件,wpa_supplicant、wpa_cli、wpa_passphrase
1、wpa_passphrase:用于向conf配置文件中添加网络配置信息,例如
1
sudo wpa_passphrase ssid passphrase | sudo tee wpa_supplicant.conf`
ctrl_iface exists and seems to be in use - cannot override it Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore Failed to initialize control interface '/var/run/wpa_supplicant'. You may have another wpa_supplicant process already running or the file was left by an unclean termination of wpa_supplicant inwhichcase you will need to manually remove this file before starting wpa_supplicant again.
make -C ../src install for d in ap common crypto drivers eapol_auth eapol_supp eap_common eap_peer eap_server l2_packet p2p pae radius rsn_supp tls utils wps fst; do [ -d $d ] && make -C $d install; done Nothing to be made. Nothing to be made. Nothing to be made. Nothing to be made. Nothing to be made. Nothing to be made. Nothing to be made. Nothing to be made. Nothing to be made. Nothing to be made. Nothing to be made. Nothing to be made. Nothing to be made. Nothing to be made. Nothing to be made. Nothing to be made. Nothing to be made. Nothing to be made. ifls eap_*.so >/dev/null 2>&1; then \ install -d /usr/local/lib/wpa_supplicant && \ cp *.so /usr/local/lib/wpa_supplicant \ ; fi make: 'wpa_gui-qt4' is up to date.
进入目录执行wpa_gui
1 2 3
cd ~/Documents cd wpa_supplicant-2.10/wpa_supplicant/wpa_gui-qt4 sudo ./wpa_gui