xref: /dflybsd-src/usr.sbin/802_11/wpa_supplicant/wpa_supplicant.conf.5 (revision 5be7118be32c01e5ed21633b5b12650c68d29230)
1da211034SSepherosa Ziehau.\" Copyright (c) 2005 Sam Leffler <sam@errno.com>
2da211034SSepherosa Ziehau.\" All rights reserved.
3da211034SSepherosa Ziehau.\"
4da211034SSepherosa Ziehau.\" Redistribution and use in source and binary forms, with or without
5da211034SSepherosa Ziehau.\" modification, are permitted provided that the following conditions
6da211034SSepherosa Ziehau.\" are met:
7da211034SSepherosa Ziehau.\" 1. Redistributions of source code must retain the above copyright
8da211034SSepherosa Ziehau.\"    notice, this list of conditions and the following disclaimer.
9da211034SSepherosa Ziehau.\" 2. Redistributions in binary form must reproduce the above copyright
10da211034SSepherosa Ziehau.\"    notice, this list of conditions and the following disclaimer in the
11da211034SSepherosa Ziehau.\"    documentation and/or other materials provided with the distribution.
12da211034SSepherosa Ziehau.\"
13da211034SSepherosa Ziehau.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14da211034SSepherosa Ziehau.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15da211034SSepherosa Ziehau.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16da211034SSepherosa Ziehau.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17da211034SSepherosa Ziehau.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18da211034SSepherosa Ziehau.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19da211034SSepherosa Ziehau.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20da211034SSepherosa Ziehau.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21da211034SSepherosa Ziehau.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22da211034SSepherosa Ziehau.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23da211034SSepherosa Ziehau.\" SUCH DAMAGE.
24da211034SSepherosa Ziehau.\"
252513f15eSJohn Marino.\" $FreeBSD: head/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.conf.5 235337 2012-05-12 15:08:22Z gjb $
26da211034SSepherosa Ziehau.\"
27*5be7118bSSascha Wildner.Dd May 28, 2014
28da211034SSepherosa Ziehau.Dt WPA_SUPPLICANT.CONF 5
29da211034SSepherosa Ziehau.Os
30da211034SSepherosa Ziehau.Sh NAME
31da211034SSepherosa Ziehau.Nm wpa_supplicant.conf
32da211034SSepherosa Ziehau.Nd configuration file for
33da211034SSepherosa Ziehau.Xr wpa_supplicant 8
34da211034SSepherosa Ziehau.Sh DESCRIPTION
35da211034SSepherosa ZiehauThe
36da211034SSepherosa Ziehau.Xr wpa_supplicant 8
37da211034SSepherosa Ziehauutility is an implementation of the WPA Supplicant component,
38da211034SSepherosa Ziehaui.e., the part that runs in the client stations.
39da211034SSepherosa ZiehauIt implements WPA key negotiation with a WPA Authenticator
40da211034SSepherosa Ziehauand EAP authentication with Authentication Server using
41da211034SSepherosa Ziehauconfiguration information stored in a text file.
42da211034SSepherosa Ziehau.Pp
43da211034SSepherosa ZiehauThe configuration file consists of optional global parameter
44da211034SSepherosa Ziehausettings and one or more network blocks, e.g.\&
45da211034SSepherosa Ziehauone for each used SSID.
46da211034SSepherosa ZiehauThe
47da211034SSepherosa Ziehau.Xr wpa_supplicant 8
48da211034SSepherosa Ziehauutility
49da211034SSepherosa Ziehauwill automatically select the best network based on the order of
50da211034SSepherosa Ziehauthe network blocks in the configuration file, network security level
51da211034SSepherosa Ziehau(WPA/WPA2 is preferred), and signal strength.
52da211034SSepherosa ZiehauComments are indicated with the
53da211034SSepherosa Ziehau.Ql #
54da211034SSepherosa Ziehaucharacter; all text to the
55da211034SSepherosa Ziehauend of the line will be ignored.
56da211034SSepherosa Ziehau.Sh GLOBAL PARAMETERS
57da211034SSepherosa ZiehauDefault parameters used by
58da211034SSepherosa Ziehau.Xr wpa_supplicant 8
59da211034SSepherosa Ziehaumay be overridden by specifying
60da211034SSepherosa Ziehau.Pp
61da211034SSepherosa Ziehau.Dl parameter=value
62da211034SSepherosa Ziehau.Pp
63da211034SSepherosa Ziehauin the configuration file (note no spaces are allowed).
64da211034SSepherosa ZiehauValues with embedded spaces must be enclosed in quote marks.
65da211034SSepherosa Ziehau.Pp
66da211034SSepherosa ZiehauThe following parameters are recognized:
67da211034SSepherosa Ziehau.Bl -tag -width indent
68da211034SSepherosa Ziehau.It Va ctrl_interface
69da211034SSepherosa ZiehauThe pathname of the directory in which
70da211034SSepherosa Ziehau.Xr wpa_supplicant 8
71da211034SSepherosa Ziehaucreates
72da211034SSepherosa Ziehau.Ux
73da211034SSepherosa Ziehaudomain socket files for communication
74da211034SSepherosa Ziehauwith frontend programs such as
75da211034SSepherosa Ziehau.Xr wpa_cli 8 .
76da211034SSepherosa Ziehau.It Va ctrl_interface_group
77da211034SSepherosa ZiehauA group name or group ID to use in setting protection on the
78da211034SSepherosa Ziehaucontrol interface file.
79da211034SSepherosa ZiehauThis can be set to allow non-root users to access the
80da211034SSepherosa Ziehaucontrol interface files.
81da211034SSepherosa ZiehauIf no group is specified, the group ID of the control interface
82da211034SSepherosa Ziehauis not modified and will, typically, be the
83da211034SSepherosa Ziehaugroup ID of the directory in which the socket is created.
84da211034SSepherosa Ziehau.It Va eapol_version
85da211034SSepherosa ZiehauThe IEEE 802.1x/EAPOL protocol version to use; either 1 (default) or 2.
86da211034SSepherosa ZiehauThe
87da211034SSepherosa Ziehau.Xr wpa_supplicant 8
88da211034SSepherosa Ziehauutility
89da211034SSepherosa Ziehauis implemented according to IEEE 802-1X-REV-d8 which defines
90da211034SSepherosa ZiehauEAPOL version to be 2.
91da211034SSepherosa ZiehauHowever, some access points do not work when presented with
92da211034SSepherosa Ziehauthis version so by default
93da211034SSepherosa Ziehau.Xr wpa_supplicant 8
94da211034SSepherosa Ziehauwill announce that it is using EAPOL version 1.
95da211034SSepherosa ZiehauIf version 2 must be announced for correct operation with an
96da211034SSepherosa Ziehauaccess point, this value may be set to 2.
97da211034SSepherosa Ziehau.It Va ap_scan
98da211034SSepherosa ZiehauAccess point scanning and selection control; one of 0, 1 (default), or 2.
99da211034SSepherosa ZiehauOnly setting 1 should be used with the
100da211034SSepherosa Ziehau.Xr wlan 4
101da211034SSepherosa Ziehaumodule; the other settings are for use on other operating systems.
102da211034SSepherosa Ziehau.It Va fast_reauth
103da211034SSepherosa ZiehauEAP fast re-authentication; either 1 (default) or 0.
104da211034SSepherosa ZiehauControl fast re-authentication support in EAP methods that support it.
105da211034SSepherosa Ziehau.El
106da211034SSepherosa Ziehau.Sh NETWORK BLOCKS
107da211034SSepherosa ZiehauEach potential network/access point should have a
108da211034SSepherosa Ziehau.Dq "network block"
109da211034SSepherosa Ziehauthat describes how to identify it and how to set up security.
110da211034SSepherosa ZiehauWhen multiple network blocks are listed in a configuration file,
111da211034SSepherosa Ziehauthe highest priority one is selected for use or, if multiple networks
112da211034SSepherosa Ziehauwith the same priority are identified, the first one listed in the
113da211034SSepherosa Ziehauconfiguration file is used.
114da211034SSepherosa Ziehau.Pp
115da211034SSepherosa ZiehauA network block description is of the form:
116da211034SSepherosa Ziehau.Bd -literal -offset indent
117da211034SSepherosa Ziehaunetwork={
118da211034SSepherosa Ziehau	parameter=value
119da211034SSepherosa Ziehau	...
120da211034SSepherosa Ziehau}
121da211034SSepherosa Ziehau.Ed
122da211034SSepherosa Ziehau.Pp
123da211034SSepherosa Ziehau(note the leading
124da211034SSepherosa Ziehau.Qq Li "network={"
125da211034SSepherosa Ziehaumay have no spaces).
126da211034SSepherosa ZiehauThe block specification contains one or more parameters
127da211034SSepherosa Ziehaufrom the following list:
128da211034SSepherosa Ziehau.Bl -tag -width indent
129da211034SSepherosa Ziehau.It Va ssid No (required)
130da211034SSepherosa ZiehauNetwork name (as announced by the access point).
131da211034SSepherosa ZiehauAn
132da211034SSepherosa Ziehau.Tn ASCII
133da211034SSepherosa Ziehauor hex string enclosed in quotation marks.
134da211034SSepherosa Ziehau.It Va scan_ssid
135da211034SSepherosa ZiehauSSID scan technique; 0 (default) or 1.
136da211034SSepherosa ZiehauTechnique 0 scans for the SSID using a broadcast Probe Request
137da211034SSepherosa Ziehauframe while 1 uses a directed Probe Request frame.
138da211034SSepherosa ZiehauAccess points that cloak themselves by not broadcasting their SSID
139da211034SSepherosa Ziehaurequire technique 1, but beware that this scheme can cause scanning
140da211034SSepherosa Ziehauto take longer to complete.
141da211034SSepherosa Ziehau.It Va bssid
142da211034SSepherosa ZiehauNetwork BSSID (typically the MAC address of the access point).
143da211034SSepherosa Ziehau.It Va priority
144da211034SSepherosa ZiehauThe priority of a network when selecting among multiple networks;
145da211034SSepherosa Ziehaua higher value means a network is more desirable.
146da211034SSepherosa ZiehauBy default networks have priority 0.
147da211034SSepherosa ZiehauWhen multiple networks with the same priority are considered
148da211034SSepherosa Ziehaufor selection, other information such as security policy and
149da211034SSepherosa Ziehausignal strength are used to select one.
150da211034SSepherosa Ziehau.It Va mode
151da211034SSepherosa ZiehauIEEE 802.11 operation mode; either 0 (infrastructure, default) or 1 (IBSS).
152da211034SSepherosa ZiehauNote that IBSS (adhoc) mode can only be used with
153da211034SSepherosa Ziehau.Va key_mgmt
154da211034SSepherosa Ziehauset to
155da211034SSepherosa Ziehau.Li NONE
1562513f15eSJohn Marino(plaintext and static WEP), or
1572513f15eSJohn Marino.Va key_mgmt
1582513f15eSJohn Marinoset to
1592513f15eSJohn Marino.Li WPA-NONE
1602513f15eSJohn Marino(fixed group key TKIP/CCMP).
1612513f15eSJohn MarinoIn addition,
1622513f15eSJohn Marino.Va ap_scan
1632513f15eSJohn Marinohas to be set to 2 for IBSS.
1642513f15eSJohn Marino.Li WPA-NONE
1652513f15eSJohn Marinorequires
1662513f15eSJohn Marino.Va proto
1672513f15eSJohn Marinoset to WPA,
1682513f15eSJohn Marino.Va key_mgmt
1692513f15eSJohn Marinoset to WPA-NONE,
1702513f15eSJohn Marino.Va pairwise
1712513f15eSJohn Marinoset to NONE,
1722513f15eSJohn Marino.Va group
1732513f15eSJohn Marinoset to either
1742513f15eSJohn MarinoCCMP or TKIP (but not both), and
1752513f15eSJohn Marino.Va psk
1762513f15eSJohn Marinomust also be set.
177da211034SSepherosa Ziehau.It Va proto
178da211034SSepherosa ZiehauList of acceptable protocols; one or more of:
179da211034SSepherosa Ziehau.Li WPA
180da211034SSepherosa Ziehau(IEEE 802.11i/D3.0)
181da211034SSepherosa Ziehauand
182da211034SSepherosa Ziehau.Li RSN
183da211034SSepherosa Ziehau(IEEE 802.11i).
184da211034SSepherosa Ziehau.Li WPA2
185da211034SSepherosa Ziehauis another name for
186da211034SSepherosa Ziehau.Li RSN .
187da211034SSepherosa ZiehauIf not set this defaults to
188da211034SSepherosa Ziehau.Qq Li "WPA RSN" .
189da211034SSepherosa Ziehau.It Va key_mgmt
190da211034SSepherosa ZiehauList of acceptable key management protocols; one or more of:
191da211034SSepherosa Ziehau.Li WPA-PSK
192da211034SSepherosa Ziehau(WPA pre-shared key),
193da211034SSepherosa Ziehau.Li WPA-EAP
194da211034SSepherosa Ziehau(WPA using EAP authentication),
195da211034SSepherosa Ziehau.Li IEEE8021X
196da211034SSepherosa Ziehau(IEEE 802.1x using EAP authentication and,
197da211034SSepherosa Ziehauoptionally, dynamically generated WEP keys),
198da211034SSepherosa Ziehau.Li NONE
199da211034SSepherosa Ziehau(plaintext or static WEP keys).
200da211034SSepherosa ZiehauIf not set this defaults to
201da211034SSepherosa Ziehau.Qq Li "WPA-PSK WPA-EAP" .
202da211034SSepherosa Ziehau.It Va auth_alg
203da211034SSepherosa ZiehauList of allowed IEEE 802.11 authentication algorithms; one or more of:
204da211034SSepherosa Ziehau.Li OPEN
205da211034SSepherosa Ziehau(Open System authentication, required for WPA/WPA2),
206da211034SSepherosa Ziehau.Li SHARED
207da211034SSepherosa Ziehau(Shared Key authentication),
208da211034SSepherosa Ziehau.Li LEAP
209da211034SSepherosa Ziehau(LEAP/Network EAP).
210da211034SSepherosa ZiehauIf not set automatic selection is used (Open System with LEAP
211da211034SSepherosa Ziehauenabled if LEAP is allowed as one of the EAP methods).
212da211034SSepherosa Ziehau.It Va pairwise
213da211034SSepherosa ZiehauList of acceptable pairwise (unicast) ciphers for WPA; one or more of:
214da211034SSepherosa Ziehau.Li CCMP
215da211034SSepherosa Ziehau(AES in Counter mode with CBC-MAC, RFC 3610, IEEE 802.11i/D7.0),
216da211034SSepherosa Ziehau.Li TKIP
217da211034SSepherosa Ziehau(Temporal Key Integrity Protocol, IEEE 802.11i/D7.0),
218da211034SSepherosa Ziehau.Li NONE
219da211034SSepherosa Ziehau(deprecated).
220da211034SSepherosa ZiehauIf not set this defaults to
221da211034SSepherosa Ziehau.Qq Li "CCMP TKIP" .
222da211034SSepherosa Ziehau.It Va group
223da211034SSepherosa ZiehauList of acceptable group (multicast) ciphers for WPA; one or more of:
224da211034SSepherosa Ziehau.Li CCMP
225da211034SSepherosa Ziehau(AES in Counter mode with CBC-MAC, RFC 3610, IEEE 802.11i/D7.0),
226da211034SSepherosa Ziehau.Li TKIP
227da211034SSepherosa Ziehau(Temporal Key Integrity Protocol, IEEE 802.11i/D7.0),
228da211034SSepherosa Ziehau.Li WEP104
229da211034SSepherosa Ziehau(WEP with 104-bit key),
230da211034SSepherosa Ziehau.Li WEP40
231da211034SSepherosa Ziehau(WEP with 40-bit key).
232da211034SSepherosa ZiehauIf not set this defaults to
233da211034SSepherosa Ziehau.Qq Li "CCMP TKIP WEP104 WEP40" .
234da211034SSepherosa Ziehau.It Va psk
235da211034SSepherosa ZiehauWPA preshared key used in WPA-PSK mode.
236da211034SSepherosa ZiehauThe key is specified as 64 hex digits or as
237da211034SSepherosa Ziehauan 8-63 character
238da211034SSepherosa Ziehau.Tn ASCII
239da211034SSepherosa Ziehaupassphrase.
240da211034SSepherosa Ziehau.Tn ASCII
241a69e7202SSepherosa Ziehaupassphrases are dynamically converted to a 256-bit key at runtime
2428e61a47dSRui Paulousing the network SSID, or they can be statically converted at
2438e61a47dSRui Pauloconfiguration time using
2448e61a47dSRui Paulothe
2458e61a47dSRui Paulo.Xr wpa_passphrase 8
2468e61a47dSRui Pauloutility.
247da211034SSepherosa Ziehau.It Va eapol_flags
248da211034SSepherosa ZiehauDynamic WEP key usage for non-WPA mode, specified as a bit field.
249da211034SSepherosa ZiehauBit 0 (1) forces dynamically generated unicast WEP keys to be used.
250da211034SSepherosa ZiehauBit 1 (2) forces dynamically generated broadcast WEP keys to be used.
251da211034SSepherosa ZiehauBy default this is set to 3 (use both).
252da211034SSepherosa Ziehau.It Va eap
253da211034SSepherosa ZiehauList of acceptable EAP methods; one or more of:
254da211034SSepherosa Ziehau.Li MD5
255da211034SSepherosa Ziehau(EAP-MD5, cannot be used with WPA,
256da211034SSepherosa Ziehauused only as a Phase 2 method with EAP-PEAP or EAP-TTLS),
257da211034SSepherosa Ziehau.Li MSCHAPV2
258da211034SSepherosa Ziehau(EAP-MSCHAPV2, cannot be used with WPA;
259da211034SSepherosa Ziehauused only as a Phase 2 method with EAP-PEAP or EAP-TTLS),
260da211034SSepherosa Ziehau.Li OTP
261da211034SSepherosa Ziehau(EAP-OTP, cannot be used with WPA;
2628e61a47dSRui Pauloused only as a Phase 2 metod with EAP-PEAP or EAP-TTLS),
263da211034SSepherosa Ziehau.Li GTC
264da211034SSepherosa Ziehau(EAP-GTC, cannot be used with WPA;
2658e61a47dSRui Pauloused only as a Phase 2 metod with EAP-PEAP or EAP-TTLS),
266da211034SSepherosa Ziehau.Li TLS
267da211034SSepherosa Ziehau(EAP-TLS, client and server certificate),
268da211034SSepherosa Ziehau.Li PEAP
269da211034SSepherosa Ziehau(EAP-PEAP, with tunneled EAP authentication),
270da211034SSepherosa Ziehau.Li TTLS
271da211034SSepherosa Ziehau(EAP-TTLS, with tunneled EAP or PAP/CHAP/MSCHAP/MSCHAPV2 authentication).
272da211034SSepherosa ZiehauIf not set this defaults to all available methods compiled into
273da211034SSepherosa Ziehau.Xr wpa_supplicant 8 .
274da211034SSepherosa ZiehauNote that by default
275da211034SSepherosa Ziehau.Xr wpa_supplicant 8
276da211034SSepherosa Ziehauis compiled with EAP support; see
277da211034SSepherosa Ziehau.Xr make.conf 5
278da211034SSepherosa Ziehaufor the
279da211034SSepherosa Ziehau.Va NO_WPA_SUPPLICANT_EAPOL
280da211034SSepherosa Ziehauconfiguration variable that can be used to disable EAP support.
281da211034SSepherosa Ziehau.It Va identity
282da211034SSepherosa ZiehauIdentity string for EAP.
283da211034SSepherosa Ziehau.It Va anonymous_identity
284da211034SSepherosa ZiehauAnonymous identity string for EAP (to be used as the unencrypted identity
285da211034SSepherosa Ziehauwith EAP types that support different tunneled identities; e.g.\& EAP-TTLS).
286a69e7202SSepherosa Ziehau.It Va mixed_cell
287a69e7202SSepherosa ZiehauConfigure whether networks that allow both plaintext and encryption
288a69e7202SSepherosa Ziehauare allowed when selecting a BSS from the scan results.
289a69e7202SSepherosa ZiehauBy default this is set to 0 (disabled).
290da211034SSepherosa Ziehau.It Va password
291da211034SSepherosa ZiehauPassword string for EAP.
292da211034SSepherosa Ziehau.It Va ca_cert
293da211034SSepherosa ZiehauPathname to CA certificate file.
294da211034SSepherosa ZiehauThis file can have one or more trusted CA certificates.
295da211034SSepherosa ZiehauIf
296da211034SSepherosa Ziehau.Va ca_cert
297da211034SSepherosa Ziehauis not included, server certificates will not be verified (not recommended).
298da211034SSepherosa Ziehau.It Va client_cert
299da211034SSepherosa ZiehauPathname to client certificate file (PEM/DER).
300da211034SSepherosa Ziehau.It Va private_key
301da211034SSepherosa ZiehauPathname to a client private key file (PEM/DER/PFX).
302da211034SSepherosa ZiehauWhen a PKCS#12/PFX file is used, then
303da211034SSepherosa Ziehau.Va client_cert
304da211034SSepherosa Ziehaushould not be specified as both the private key and certificate will be
305da211034SSepherosa Ziehauread from PKCS#12 file.
306da211034SSepherosa Ziehau.It Va private_key_passwd
307da211034SSepherosa ZiehauPassword for any private key file.
308da211034SSepherosa Ziehau.It Va dh_file
309da211034SSepherosa ZiehauPathname to a file holding DH/DSA parameters (in PEM format).
310da211034SSepherosa ZiehauThis file holds parameters for an ephemeral DH key exchange.
311da211034SSepherosa ZiehauIn most cases, the default RSA authentication does not use this configuration.
312da211034SSepherosa ZiehauHowever, it is possible to set up RSA to use an ephemeral DH key exchange.
313da211034SSepherosa ZiehauIn addition, ciphers with
314da211034SSepherosa ZiehauDSA keys always use ephemeral DH keys.
315da211034SSepherosa ZiehauThis can be used to achieve forward secrecy.
316da211034SSepherosa ZiehauIf the
317da211034SSepherosa Ziehau.Va dh_file
318da211034SSepherosa Ziehauis in DSA parameters format, it will be automatically converted
3192513f15eSJohn Marinointo DH parameters.
320da211034SSepherosa Ziehau.It Va subject_match
321da211034SSepherosa ZiehauSubstring to be matched against the subject of the
322da211034SSepherosa Ziehauauthentication server certificate.
323da211034SSepherosa ZiehauIf this string is set, the server
324da211034SSepherosa Ziehaucertificate is only accepted if it contains this string in the subject.
325da211034SSepherosa ZiehauThe subject string is in following format:
326da211034SSepherosa Ziehau.Pp
327da211034SSepherosa Ziehau.Dl "/C=US/ST=CA/L=San Francisco/CN=Test AS/emailAddress=as@example.com"
328da211034SSepherosa Ziehau.It Va phase1
329da211034SSepherosa ZiehauPhase1 (outer authentication, i.e., TLS tunnel) parameters
330da211034SSepherosa Ziehau(string with field-value pairs, e.g.,
331da211034SSepherosa Ziehau.Qq Li peapver=0
332da211034SSepherosa Ziehauor
333da211034SSepherosa Ziehau.Qq Li "peapver=1 peaplabel=1" ) .
334da211034SSepherosa Ziehau.Bl -inset
335da211034SSepherosa Ziehau.It Li peapver
336da211034SSepherosa Ziehaucan be used to force which PEAP version (0 or 1) is used.
337da211034SSepherosa Ziehau.It Li peaplabel=1
338da211034SSepherosa Ziehaucan be used to force new label,
339da211034SSepherosa Ziehau.Dq "client PEAP encryption" ,
340da211034SSepherosa Ziehauto be used during key derivation when PEAPv1 or newer.
341da211034SSepherosa ZiehauMost existing PEAPv1 implementations seem to be using the old label,
342da211034SSepherosa Ziehau.Dq Li "client EAP encryption" ,
343da211034SSepherosa Ziehauand
344da211034SSepherosa Ziehau.Xr wpa_supplicant 8
345da211034SSepherosa Ziehauis now using that as the
346da211034SSepherosa Ziehaudefault value.
347da211034SSepherosa ZiehauSome servers, e.g.,
348da211034SSepherosa Ziehau.Tn Radiator ,
349da211034SSepherosa Ziehaumay require
350da211034SSepherosa Ziehau.Li peaplabel=1
351da211034SSepherosa Ziehauconfiguration to interoperate with PEAPv1; see
352da211034SSepherosa Ziehau.Pa eap_testing.txt
353da211034SSepherosa Ziehaufor more details.
354da211034SSepherosa Ziehau.It Li peap_outer_success=0
355da211034SSepherosa Ziehaucan be used to terminate PEAP authentication on
356da211034SSepherosa Ziehautunneled EAP-Success.
357da211034SSepherosa ZiehauThis is required with some RADIUS servers that
358da211034SSepherosa Ziehauimplement
359da211034SSepherosa Ziehau.Pa draft-josefsson-pppext-eap-tls-eap-05.txt
360da211034SSepherosa Ziehau(e.g.,
361da211034SSepherosa Ziehau.Tn Lucent NavisRadius v4.4.0
362da211034SSepherosa Ziehauwith PEAP in
363da211034SSepherosa Ziehau.Dq "IETF Draft 5"
364da211034SSepherosa Ziehaumode).
365da211034SSepherosa Ziehau.It Li include_tls_length=1
366da211034SSepherosa Ziehaucan be used to force
367da211034SSepherosa Ziehau.Xr wpa_supplicant 8
368da211034SSepherosa Ziehauto include
369da211034SSepherosa ZiehauTLS Message Length field in all TLS messages even if they are not
370da211034SSepherosa Ziehaufragmented.
371da211034SSepherosa Ziehau.It Li sim_min_num_chal=3
372da211034SSepherosa Ziehaucan be used to configure EAP-SIM to require three
3732513f15eSJohn Marinochallenges (by default, it accepts 2 or 3).
374da211034SSepherosa Ziehau.It Li fast_provisioning=1
375da211034SSepherosa Ziehauoption enables in-line provisioning of EAP-FAST
376da211034SSepherosa Ziehaucredentials (PAC).
377da211034SSepherosa Ziehau.El
378da211034SSepherosa Ziehau.It Va phase2
379da211034SSepherosa Ziehauphase2: Phase2 (inner authentication with TLS tunnel) parameters
380da211034SSepherosa Ziehau(string with field-value pairs, e.g.,
381da211034SSepherosa Ziehau.Qq Li "auth=MSCHAPV2"
382da211034SSepherosa Ziehaufor EAP-PEAP or
383da211034SSepherosa Ziehau.Qq Li "autheap=MSCHAPV2 autheap=MD5"
384da211034SSepherosa Ziehaufor EAP-TTLS).
385da211034SSepherosa Ziehau.It Va ca_cert2
386da211034SSepherosa ZiehauLike
387da211034SSepherosa Ziehau.Va ca_cert
388da211034SSepherosa Ziehaubut for EAP inner Phase 2.
389da211034SSepherosa Ziehau.It Va client_cert2
390da211034SSepherosa ZiehauLike
391da211034SSepherosa Ziehau.Va client_cert
392da211034SSepherosa Ziehaubut for EAP inner Phase 2.
393da211034SSepherosa Ziehau.It Va private_key2
394da211034SSepherosa ZiehauLike
395da211034SSepherosa Ziehau.Va private_key
396da211034SSepherosa Ziehaubut for EAP inner Phase 2.
397da211034SSepherosa Ziehau.It Va private_key2_passwd
398da211034SSepherosa ZiehauLike
399da211034SSepherosa Ziehau.Va private_key_passwd
400da211034SSepherosa Ziehaubut for EAP inner Phase 2.
401da211034SSepherosa Ziehau.It Va dh_file2
402da211034SSepherosa ZiehauLike
403da211034SSepherosa Ziehau.Va dh_file
404da211034SSepherosa Ziehaubut for EAP inner Phase 2.
405da211034SSepherosa Ziehau.It Va subject_match2
406da211034SSepherosa ZiehauLike
407da211034SSepherosa Ziehau.Va subject_match
408da211034SSepherosa Ziehaubut for EAP inner Phase 2.
409da211034SSepherosa Ziehau.It Va eappsk
410da211034SSepherosa Ziehau16-byte pre-shared key in hex format for use with EAP-PSK.
411da211034SSepherosa Ziehau.It Va nai
412da211034SSepherosa ZiehauUser NAI for use with EAP-PSK.
413da211034SSepherosa Ziehau.It Va server_nai
414da211034SSepherosa ZiehauAuthentication Server NAI for use with EAP-PSK.
415da211034SSepherosa Ziehau.It Va pac_file
416da211034SSepherosa ZiehauPathname to the file to use for PAC entries with EAP-FAST.
417da211034SSepherosa ZiehauThe
418da211034SSepherosa Ziehau.Xr wpa_supplicant 8
419da211034SSepherosa Ziehauutility
420da211034SSepherosa Ziehaumust be able to create this file and write updates to it when
421da211034SSepherosa ZiehauPAC is being provisioned or refreshed.
422da211034SSepherosa Ziehau.It Va eap_workaround
423da211034SSepherosa ZiehauEnable/disable EAP workarounds for various interoperability issues
424da211034SSepherosa Ziehauwith misbehaving authentication servers.
425da211034SSepherosa ZiehauBy default these workarounds are enabled.
4268e61a47dSRui PauloStrict EAP conformance can be configured by setting this to 0.
4272513f15eSJohn Marino.It Va wep_tx_keyidx
4282513f15eSJohn Marinowhich key to use for transmission of packets.
4292513f15eSJohn Marino.It Va wep_keyN key
4302513f15eSJohn MarinoAn
4312513f15eSJohn Marino.Tn ASCII
4322513f15eSJohn Marinostring enclosed in quotation marks to encode the WEP key.
4332513f15eSJohn MarinoWithout quotes this is a hex string of the actual key.
4342513f15eSJohn MarinoWEP is considered insecure and should be avoided.
4352513f15eSJohn MarinoThe exact translation from an ASCII key to a hex key varies.
4362513f15eSJohn MarinoUse hex keys where possible.
437da211034SSepherosa Ziehau.El
438da211034SSepherosa Ziehau.Sh CERTIFICATES
439da211034SSepherosa ZiehauSome EAP authentication methods require use of certificates.
440da211034SSepherosa ZiehauEAP-TLS uses both server- and client-side certificates,
441da211034SSepherosa Ziehauwhereas EAP-PEAP and EAP-TTLS only require a server-side certificate.
442da211034SSepherosa ZiehauWhen a client certificate is used, a matching private key file must
443da211034SSepherosa Ziehaualso be included in configuration.
444da211034SSepherosa ZiehauIf the private key uses a passphrase, this
445da211034SSepherosa Ziehauhas to be configured in the
446da211034SSepherosa Ziehau.Nm
447da211034SSepherosa Ziehaufile as
448da211034SSepherosa Ziehau.Va private_key_passwd .
449da211034SSepherosa Ziehau.Pp
450da211034SSepherosa ZiehauThe
451da211034SSepherosa Ziehau.Xr wpa_supplicant 8
452da211034SSepherosa Ziehauutility
453da211034SSepherosa Ziehausupports X.509 certificates in PEM and DER formats.
454da211034SSepherosa ZiehauUser certificate and private key can be included in the same file.
455da211034SSepherosa Ziehau.Pp
456da211034SSepherosa ZiehauIf the user certificate and private key is received in PKCS#12/PFX
457da211034SSepherosa Ziehauformat, they need to be converted to a suitable PEM/DER format for
458da211034SSepherosa Ziehauuse by
459da211034SSepherosa Ziehau.Xr wpa_supplicant 8 .
460da211034SSepherosa ZiehauThis can be done using the
461da211034SSepherosa Ziehau.Xr openssl 1
462da211034SSepherosa Ziehauprogram, e.g.\& with the following commands:
463da211034SSepherosa Ziehau.Bd -literal
464da211034SSepherosa Ziehau# convert client certificate and private key to PEM format
465da211034SSepherosa Ziehauopenssl pkcs12 -in example.pfx -out user.pem -clcerts
466da211034SSepherosa Ziehau# convert CA certificate (if included in PFX file) to PEM format
467da211034SSepherosa Ziehauopenssl pkcs12 -in example.pfx -out ca.pem -cacerts -nokeys
468da211034SSepherosa Ziehau.Ed
46972df6cb3SSascha Wildner.Sh FILES
47072df6cb3SSascha Wildner.Bl -tag -width ".Pa /usr/share/examples/etc/wpa_supplicant.conf" -compact
47172df6cb3SSascha Wildner.It Pa /etc/wpa_supplicant.conf
47272df6cb3SSascha Wildner.It Pa /usr/share/examples/etc/wpa_supplicant.conf
47372df6cb3SSascha Wildner.El
474da211034SSepherosa Ziehau.Sh EXAMPLES
475da211034SSepherosa ZiehauWPA-Personal (PSK) as a home network and WPA-Enterprise with EAP-TLS
476da211034SSepherosa Ziehauas a work network:
477da211034SSepherosa Ziehau.Bd -literal
478da211034SSepherosa Ziehau# allow frontend (e.g., wpa_cli) to be used by all users in 'wheel' group
479da211034SSepherosa Ziehauctrl_interface=/var/run/wpa_supplicant
480da211034SSepherosa Ziehauctrl_interface_group=wheel
481da211034SSepherosa Ziehau#
482da211034SSepherosa Ziehau# home network; allow all valid ciphers
483da211034SSepherosa Ziehaunetwork={
484da211034SSepherosa Ziehau        ssid="home"
485da211034SSepherosa Ziehau        scan_ssid=1
486da211034SSepherosa Ziehau        key_mgmt=WPA-PSK
487da211034SSepherosa Ziehau        psk="very secret passphrase"
488da211034SSepherosa Ziehau}
489da211034SSepherosa Ziehau#
490da211034SSepherosa Ziehau# work network; use EAP-TLS with WPA; allow only CCMP and TKIP ciphers
491da211034SSepherosa Ziehaunetwork={
492da211034SSepherosa Ziehau        ssid="work"
493da211034SSepherosa Ziehau        scan_ssid=1
494da211034SSepherosa Ziehau        key_mgmt=WPA-EAP
495da211034SSepherosa Ziehau        pairwise=CCMP TKIP
496da211034SSepherosa Ziehau        group=CCMP TKIP
497da211034SSepherosa Ziehau        eap=TLS
498da211034SSepherosa Ziehau        identity="user@example.com"
499da211034SSepherosa Ziehau        ca_cert="/etc/cert/ca.pem"
500da211034SSepherosa Ziehau        client_cert="/etc/cert/user.pem"
501da211034SSepherosa Ziehau        private_key="/etc/cert/user.prv"
502da211034SSepherosa Ziehau        private_key_passwd="password"
503da211034SSepherosa Ziehau}
504da211034SSepherosa Ziehau.Ed
505da211034SSepherosa Ziehau.Pp
506da211034SSepherosa ZiehauWPA-RADIUS/EAP-PEAP/MSCHAPv2 with RADIUS servers that use old peaplabel
507da211034SSepherosa Ziehau(e.g., Funk Odyssey and SBR, Meetinghouse Aegis, Interlink RAD-Series):
508da211034SSepherosa Ziehau.Bd -literal
509da211034SSepherosa Ziehauctrl_interface=/var/run/wpa_supplicant
510da211034SSepherosa Ziehauctrl_interface_group=wheel
511da211034SSepherosa Ziehaunetwork={
512da211034SSepherosa Ziehau        ssid="example"
513da211034SSepherosa Ziehau        scan_ssid=1
514da211034SSepherosa Ziehau        key_mgmt=WPA-EAP
515da211034SSepherosa Ziehau        eap=PEAP
516da211034SSepherosa Ziehau        identity="user@example.com"
517da211034SSepherosa Ziehau        password="foobar"
518da211034SSepherosa Ziehau        ca_cert="/etc/cert/ca.pem"
519da211034SSepherosa Ziehau        phase1="peaplabel=0"
520da211034SSepherosa Ziehau        phase2="auth=MSCHAPV2"
521da211034SSepherosa Ziehau}
522da211034SSepherosa Ziehau.Ed
523da211034SSepherosa Ziehau.Pp
524da211034SSepherosa ZiehauEAP-TTLS/EAP-MD5-Challenge configuration with anonymous identity for the
525da211034SSepherosa Ziehauunencrypted use.
526da211034SSepherosa ZiehauReal identity is sent only within an encrypted TLS tunnel.
527da211034SSepherosa Ziehau.Bd -literal
528da211034SSepherosa Ziehauctrl_interface=/var/run/wpa_supplicant
529da211034SSepherosa Ziehauctrl_interface_group=wheel
530da211034SSepherosa Ziehaunetwork={
531da211034SSepherosa Ziehau        ssid="example"
532da211034SSepherosa Ziehau        scan_ssid=1
533da211034SSepherosa Ziehau        key_mgmt=WPA-EAP
534da211034SSepherosa Ziehau        eap=TTLS
535da211034SSepherosa Ziehau        identity="user@example.com"
536da211034SSepherosa Ziehau        anonymous_identity="anonymous@example.com"
537da211034SSepherosa Ziehau        password="foobar"
538da211034SSepherosa Ziehau        ca_cert="/etc/cert/ca.pem"
539da211034SSepherosa Ziehau        phase2="auth=MD5"
540da211034SSepherosa Ziehau}
541da211034SSepherosa Ziehau.Ed
542da211034SSepherosa Ziehau.Pp
543da211034SSepherosa ZiehauTraditional WEP configuration with 104 bit key specified in hexadecimal.
544da211034SSepherosa ZiehauNote the WEP key is not quoted.
545da211034SSepherosa Ziehau.Bd -literal
546da211034SSepherosa Ziehauctrl_interface=/var/run/wpa_supplicant
547da211034SSepherosa Ziehauctrl_interface_group=wheel
548da211034SSepherosa Ziehaunetwork={
549da211034SSepherosa Ziehau        ssid="example"
550da211034SSepherosa Ziehau        scan_ssid=1
551da211034SSepherosa Ziehau        key_mgmt=NONE
552da211034SSepherosa Ziehau        wep_tx_keyidx=0
5532513f15eSJohn Marino	# hex keys denoted without quotes
554da211034SSepherosa Ziehau        wep_key0=42FEEDDEAFBABEDEAFBEEFAA55
5552513f15eSJohn Marino	# ASCII keys denoted with quotes.
5562513f15eSJohn Marino	wep_key1="DragonFlyR0X!"
557da211034SSepherosa Ziehau}
558da211034SSepherosa Ziehau.Ed
559da211034SSepherosa Ziehau.Sh SEE ALSO
560a26669deSSepherosa Ziehau.Xr wpa_cli 8 ,
5618e61a47dSRui Paulo.Xr wpa_passphrase 8 ,
562da211034SSepherosa Ziehau.Xr wpa_supplicant 8
563da211034SSepherosa Ziehau.Sh HISTORY
564da211034SSepherosa ZiehauThe
565da211034SSepherosa Ziehau.Nm
566da211034SSepherosa Ziehaumanual page and
567da211034SSepherosa Ziehau.Xr wpa_supplicant 8
568da211034SSepherosa Ziehaufunctionality first appeared in
569da211034SSepherosa Ziehau.Fx 6.0 .
570da211034SSepherosa Ziehau.Sh AUTHORS
571da211034SSepherosa ZiehauThis manual page is derived from the
572da211034SSepherosa Ziehau.Pa README
573da211034SSepherosa Ziehauand
574da211034SSepherosa Ziehau.Pa wpa_supplicant.conf
575da211034SSepherosa Ziehaufiles in the
576da211034SSepherosa Ziehau.Nm wpa_supplicant
577da211034SSepherosa Ziehaudistribution provided by
578*5be7118bSSascha Wildner.An Jouni Malinen Aq Mt j@w1.fi .
579