xref: /netbsd-src/share/examples/wpa_supplicant/wpa_supplicant.conf (revision b7b7574d3bf8eeb51a1fa3977b59142ec6434a55)
1# example wpa_supplicant config
2#
3# please refer to the wpa_supplicant.conf man page
4
5# wpa_cli and dhcpcd won't work well if you have no ctrl_interface set
6# the value must be a directory, the sockets will be named after the interfaces
7ctrl_interface=/var/run/wpa_supplicant/
8
9# if non-root should be allowed to send wpa_supplicant commands via wpa_cli
10# name a group whose members will be Allowed(tm)
11ctrl_interface_group=wheel
12
13# WEP .. all the stopping power of a "please keep off the lawn" sign
14# least common denominator "security" so it's formally not open
15network={
16	ssid="TheLawn"
17	key_mgmt=NONE
18	wep_tx_keyidx=0
19	#wep_key0="pleasekeepoff"
20	wep_key0=706c656173656b6565706f6666
21	priority=2
22}
23
24# simple WPA-PSK, a favourite with conferences and hotel networks
25network={
26	ssid="SomeConference"
27	key_mgmt=WPA-PSK
28	psk="secretKey"
29}
30
31# using eduroam for more examples:
32
33## eduroam with PEAP/MSCHAPv2
34#network={
35#	ssid="eduroam"
36#	scan_ssid=1
37#
38#	# The 'identity' is the username used for authentication.
39#	identity="user1234@your.university.domain"
40#
41#	# add yours
42#	password="myPassword"
43#
44#	# download a fitting CA cert and put the path to it here
45#	ca_cert="/etc/openssl/certs/eduroam-CA-cert.pem"
46#
47#	# where the authentication requests should be routed to
48#	anonymous_identity="anonymous@your.university.domain"
49#
50#	key_mgmt=WPA-EAP
51#	auth_alg=OPEN
52#	eap=PEAP
53#	phase2="auth=MSCHAPv2"
54#
55#	priority=5
56#}
57#
58## eduroam with EAP-TLS
59#network={
60#	ssid="eduroam"
61#	scan_ssid=1
62#
63#	# The 'identity' is the username used for authentication.
64#	identity="user1234@your.university.domain"
65#
66#	client_cert="/home/you/eduroam/user.cert"
67#	private_key="/home/you/eduroam/user.key"
68#	private_key_passwd="s3kr3t"
69#
70#	# download a fitting CA cert and put the path to it here
71#	ca_cert="/etc/openssl/certs/eduroam-CA-cert.pem"
72#
73#	# where the authentication requests should be routed to
74#	anonymous_identity="anonymous@your.university.domain"
75#
76#	key_mgmt=WPA-EAP
77#	auth_alg=OPEN
78#	eap=TLS
79#
80#	priority=4
81#}
82#
83## eduroam with TTLS+PAP
84#network={
85#	ssid="eduroam"
86#	scan_ssid=1
87#
88#	# The 'identity' is the username used for authentication.
89#	identity="user1234@your.university.domain"
90#
91#	# add yours
92#	password="myPassword"
93#
94#	# download a fitting CA cert and put the path to it here
95#	ca_cert="/etc/openssl/certs/eduroam-CA-cert.pem"
96#
97#	# where the authentication requests should be routed to
98#	anonymous_identity="anonymous@your.university.domain"
99#
100#	key_mgmt=WPA-EAP
101#	auth_alg=OPEN
102#	eap=TTLS
103#	phase2="auth=PAP"
104#
105#	priority=3
106#}
107#
108