Virginia Tech Wifi: Difference between revisions
m InCommon didn't issue their own intermediate cert |
Update OpenBSD instructions |
||
| Line 130: | Line 130: | ||
phase2="auth=MSCHAPV2" | phase2="auth=MSCHAPV2" | ||
anonymous_identity="anonymous@vt.edu" | anonymous_identity="anonymous@vt.edu" | ||
# if you prefer to pin the certificate, follow the instructions above to generate a hash | |||
# if you prefer to pin the certificate | ca_cert="hash://server/sha256/0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff" | ||
ca_cert="hash://server/sha256/ | |||
# if you prefer to dynamically validate the certificate by its cryptographic attributes | # if you prefer to dynamically validate the certificate by its cryptographic attributes | ||
ca_cert="/path/to/USERTrust_RSA_Certification_Authority.pem" | ca_cert="/path/to/USERTrust_RSA_Certification_Authority.pem" | ||
domain_match="eduroam.nis.vt.edu" | domain_match="eduroam.nis.vt.edu" | ||
identity=" | identity="PID@vt.edu" | ||
password=" | password="YOUR_NETWORK_PASSWORD" | ||
} | } | ||
| Line 144: | Line 143: | ||
$ sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/eduroam.conf | $ sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/eduroam.conf | ||
$ sudo dhcpcd wlan0 | $ sudo dhcpcd wlan0 | ||
Alternate config options, besides domain_match are as follows (obviously not correct): | Alternate config options, besides domain_match are as follows (obviously not correct): | ||
| Line 158: | Line 150: | ||
More thorough documentation is available at [https://w1.fi/cgit/hostap/plain/wpa_supplicant/wpa_supplicant.conf] | More thorough documentation is available at [https://w1.fi/cgit/hostap/plain/wpa_supplicant/wpa_supplicant.conf] | ||
===OpenBSD Instructions=== | |||
Since the [[OpenBSD]] network stack doesn't support 802.1x authentication, wpa_supplicant is needed to connect. wpa_supplicant on OpenBSD is different from its Linux counterpart in that it is only capable of 802.1x authentication and nothing more. First, install wpa_supplicant from ports if it is not already installed. After that, add just the <code>network={ .. }</code> portion of the above configuration to <code>/etc/wpa_supplicant.conf</code>. The wpa_supplicant service can be enabled with (where iwm0 is your wireless interface): | |||
$ rcctl enable wpa_supplicant | |||
$ rcctl set wpa_supplicant flags -c /etc/wpa_supplicant.conf -s -D openbsd -i iwm0 | |||
$ rcctl start wpa_supplicant | |||
Finally, connect to the network with (again, replacing iwm0 with your wireless interface): | |||
$ ifconfig iwm0 join eduroam wpa wpaakms 802.1x up | |||
$ dhclient iwm0 | |||
$ ifconfig iwm0 inet6 autoconf | |||
==netctl Instructions== | ==netctl Instructions== | ||