Added support for enforcing frequent PTK rekeying
[mech_eap.git] / wpa_supplicant / wpa_supplicant.conf
1 ##### Example wpa_supplicant configuration file ###############################
2 #
3 # This file describes configuration file format and lists all available option.
4 # Please also take a look at simpler configuration examples in 'examples'
5 # subdirectory.
6 #
7 # Empty lines and lines starting with # are ignored
8
9 # NOTE! This file may contain password information and should probably be made
10 # readable only by root user on multiuser systems.
11
12 # Note: All file paths in this configuration file should use full (absolute,
13 # not relative to working directory) path in order to allow working directory
14 # to be changed. This can happen if wpa_supplicant is run in the background.
15
16 # Whether to allow wpa_supplicant to update (overwrite) configuration
17 #
18 # This option can be used to allow wpa_supplicant to overwrite configuration
19 # file whenever configuration is changed (e.g., new network block is added with
20 # wpa_cli or wpa_gui, or a password is changed). This is required for
21 # wpa_cli/wpa_gui to be able to store the configuration changes permanently.
22 # Please note that overwriting configuration file will remove the comments from
23 # it.
24 #update_config=1
25
26 # global configuration (shared by all network blocks)
27 #
28 # Parameters for the control interface. If this is specified, wpa_supplicant
29 # will open a control interface that is available for external programs to
30 # manage wpa_supplicant. The meaning of this string depends on which control
31 # interface mechanism is used. For all cases, the existance of this parameter
32 # in configuration is used to determine whether the control interface is
33 # enabled.
34 #
35 # For UNIX domain sockets (default on Linux and BSD): This is a directory that
36 # will be created for UNIX domain sockets for listening to requests from
37 # external programs (CLI/GUI, etc.) for status information and configuration.
38 # The socket file will be named based on the interface name, so multiple
39 # wpa_supplicant processes can be run at the same time if more than one
40 # interface is used.
41 # /var/run/wpa_supplicant is the recommended directory for sockets and by
42 # default, wpa_cli will use it when trying to connect with wpa_supplicant.
43 #
44 # Access control for the control interface can be configured by setting the
45 # directory to allow only members of a group to use sockets. This way, it is
46 # possible to run wpa_supplicant as root (since it needs to change network
47 # configuration and open raw sockets) and still allow GUI/CLI components to be
48 # run as non-root users. However, since the control interface can be used to
49 # change the network configuration, this access needs to be protected in many
50 # cases. By default, wpa_supplicant is configured to use gid 0 (root). If you
51 # want to allow non-root users to use the control interface, add a new group
52 # and change this value to match with that group. Add users that should have
53 # control interface access to this group. If this variable is commented out or
54 # not included in the configuration file, group will not be changed from the
55 # value it got by default when the directory or socket was created.
56 #
57 # When configuring both the directory and group, use following format:
58 # DIR=/var/run/wpa_supplicant GROUP=wheel
59 # DIR=/var/run/wpa_supplicant GROUP=0
60 # (group can be either group name or gid)
61 #
62 # For UDP connections (default on Windows): The value will be ignored. This
63 # variable is just used to select that the control interface is to be created.
64 # The value can be set to, e.g., udp (ctrl_interface=udp)
65 #
66 # For Windows Named Pipe: This value can be used to set the security descriptor
67 # for controlling access to the control interface. Security descriptor can be
68 # set using Security Descriptor String Format (see http://msdn.microsoft.com/
69 # library/default.asp?url=/library/en-us/secauthz/security/
70 # security_descriptor_string_format.asp). The descriptor string needs to be
71 # prefixed with SDDL=. For example, ctrl_interface=SDDL=D: would set an empty
72 # DACL (which will reject all connections). See README-Windows.txt for more
73 # information about SDDL string format.
74 #
75 ctrl_interface=/var/run/wpa_supplicant
76
77 # IEEE 802.1X/EAPOL version
78 # wpa_supplicant is implemented based on IEEE Std 802.1X-2004 which defines
79 # EAPOL version 2. However, there are many APs that do not handle the new
80 # version number correctly (they seem to drop the frames completely). In order
81 # to make wpa_supplicant interoperate with these APs, the version number is set
82 # to 1 by default. This configuration value can be used to set it to the new
83 # version (2).
84 eapol_version=1
85
86 # AP scanning/selection
87 # By default, wpa_supplicant requests driver to perform AP scanning and then
88 # uses the scan results to select a suitable AP. Another alternative is to
89 # allow the driver to take care of AP scanning and selection and use
90 # wpa_supplicant just to process EAPOL frames based on IEEE 802.11 association
91 # information from the driver.
92 # 1: wpa_supplicant initiates scanning and AP selection
93 # 0: driver takes care of scanning, AP selection, and IEEE 802.11 association
94 #    parameters (e.g., WPA IE generation); this mode can also be used with
95 #    non-WPA drivers when using IEEE 802.1X mode; do not try to associate with
96 #    APs (i.e., external program needs to control association). This mode must
97 #    also be used when using wired Ethernet drivers.
98 # 2: like 0, but associate with APs using security policy and SSID (but not
99 #    BSSID); this can be used, e.g., with ndiswrapper and NDIS drivers to
100 #    enable operation with hidden SSIDs and optimized roaming; in this mode,
101 #    the network blocks in the configuration file are tried one by one until
102 #    the driver reports successful association; each network block should have
103 #    explicit security policy (i.e., only one option in the lists) for
104 #    key_mgmt, pairwise, group, proto variables
105 ap_scan=1
106
107 # EAP fast re-authentication
108 # By default, fast re-authentication is enabled for all EAP methods that
109 # support it. This variable can be used to disable fast re-authentication.
110 # Normally, there is no need to disable this.
111 fast_reauth=1
112
113 # OpenSSL Engine support
114 # These options can be used to load OpenSSL engines.
115 # The two engines that are supported currently are shown below:
116 # They are both from the opensc project (http://www.opensc.org/)
117 # By default no engines are loaded.
118 # make the opensc engine available
119 #opensc_engine_path=/usr/lib/opensc/engine_opensc.so
120 # make the pkcs11 engine available
121 #pkcs11_engine_path=/usr/lib/opensc/engine_pkcs11.so
122 # configure the path to the pkcs11 module required by the pkcs11 engine
123 #pkcs11_module_path=/usr/lib/pkcs11/opensc-pkcs11.so
124
125 # Dynamic EAP methods
126 # If EAP methods were built dynamically as shared object files, they need to be
127 # loaded here before being used in the network blocks. By default, EAP methods
128 # are included statically in the build, so these lines are not needed
129 #load_dynamic_eap=/usr/lib/wpa_supplicant/eap_tls.so
130 #load_dynamic_eap=/usr/lib/wpa_supplicant/eap_md5.so
131
132 # Driver interface parameters
133 # This field can be used to configure arbitrary driver interace parameters. The
134 # format is specific to the selected driver interface. This field is not used
135 # in most cases.
136 #driver_param="field=value"
137
138 # Maximum lifetime for PMKSA in seconds; default 43200
139 #dot11RSNAConfigPMKLifetime=43200
140 # Threshold for reauthentication (percentage of PMK lifetime); default 70
141 #dot11RSNAConfigPMKReauthThreshold=70
142 # Timeout for security association negotiation in seconds; default 60
143 #dot11RSNAConfigSATimeout=60
144
145 # network block
146 #
147 # Each network (usually AP's sharing the same SSID) is configured as a separate
148 # block in this configuration file. The network blocks are in preference order
149 # (the first match is used).
150 #
151 # network block fields:
152 #
153 # disabled:
154 #       0 = this network can be used (default)
155 #       1 = this network block is disabled (can be enabled through ctrl_iface,
156 #           e.g., with wpa_cli or wpa_gui)
157 #
158 # id_str: Network identifier string for external scripts. This value is passed
159 #       to external action script through wpa_cli as WPA_ID_STR environment
160 #       variable to make it easier to do network specific configuration.
161 #
162 # ssid: SSID (mandatory); either as an ASCII string with double quotation or
163 #       as hex string; network name
164 #
165 # scan_ssid:
166 #       0 = do not scan this SSID with specific Probe Request frames (default)
167 #       1 = scan with SSID-specific Probe Request frames (this can be used to
168 #           find APs that do not accept broadcast SSID or use multiple SSIDs;
169 #           this will add latency to scanning, so enable this only when needed)
170 #
171 # bssid: BSSID (optional); if set, this network block is used only when
172 #       associating with the AP using the configured BSSID
173 #
174 # priority: priority group (integer)
175 # By default, all networks will get same priority group (0). If some of the
176 # networks are more desirable, this field can be used to change the order in
177 # which wpa_supplicant goes through the networks when selecting a BSS. The
178 # priority groups will be iterated in decreasing priority (i.e., the larger the
179 # priority value, the sooner the network is matched against the scan results).
180 # Within each priority group, networks will be selected based on security
181 # policy, signal strength, etc.
182 # Please note that AP scanning with scan_ssid=1 and ap_scan=2 mode are not
183 # using this priority to select the order for scanning. Instead, they try the
184 # networks in the order that used in the configuration file.
185 #
186 # mode: IEEE 802.11 operation mode
187 # 0 = infrastructure (Managed) mode, i.e., associate with an AP (default)
188 # 1 = IBSS (ad-hoc, peer-to-peer)
189 # Note: IBSS can only be used with key_mgmt NONE (plaintext and static WEP)
190 # and key_mgmt=WPA-NONE (fixed group key TKIP/CCMP). In addition, ap_scan has
191 # to be set to 2 for IBSS. WPA-None requires following network block options:
192 # proto=WPA, key_mgmt=WPA-NONE, pairwise=NONE, group=TKIP (or CCMP, but not
193 # both), and psk must also be set.
194 #
195 # frequency: Channel frequency in megahertz (MHz) for IBSS, e.g.,
196 # 2412 = IEEE 802.11b/g channel 1. This value is used to configure the initial
197 # channel for IBSS (adhoc) networks. It is ignored in the infrastructure mode.
198 # In addition, this value is only used by the station that creates the IBSS. If
199 # an IBSS network with the configured SSID is already present, the frequency of
200 # the network will be used instead of this configured value.
201 #
202 # proto: list of accepted protocols
203 # WPA = WPA/IEEE 802.11i/D3.0
204 # RSN = WPA2/IEEE 802.11i (also WPA2 can be used as an alias for RSN)
205 # If not set, this defaults to: WPA RSN
206 #
207 # key_mgmt: list of accepted authenticated key management protocols
208 # WPA-PSK = WPA pre-shared key (this requires 'psk' field)
209 # WPA-EAP = WPA using EAP authentication (this can use an external
210 #       program, e.g., Xsupplicant, for IEEE 802.1X EAP Authentication
211 # IEEE8021X = IEEE 802.1X using EAP authentication and (optionally) dynamically
212 #       generated WEP keys
213 # NONE = WPA is not used; plaintext or static WEP could be used
214 # WPA-PSK-SHA256 = Like WPA-PSK but using stronger SHA256-based algorithms
215 # WPA-EAP-SHA256 = Like WPA-EAP but using stronger SHA256-based algorithms
216 # If not set, this defaults to: WPA-PSK WPA-EAP
217 #
218 # auth_alg: list of allowed IEEE 802.11 authentication algorithms
219 # OPEN = Open System authentication (required for WPA/WPA2)
220 # SHARED = Shared Key authentication (requires static WEP keys)
221 # LEAP = LEAP/Network EAP (only used with LEAP)
222 # If not set, automatic selection is used (Open System with LEAP enabled if
223 # LEAP is allowed as one of the EAP methods).
224 #
225 # pairwise: list of accepted pairwise (unicast) ciphers for WPA
226 # CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
227 # TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
228 # NONE = Use only Group Keys (deprecated, should not be included if APs support
229 #       pairwise keys)
230 # If not set, this defaults to: CCMP TKIP
231 #
232 # group: list of accepted group (broadcast/multicast) ciphers for WPA
233 # CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
234 # TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
235 # WEP104 = WEP (Wired Equivalent Privacy) with 104-bit key
236 # WEP40 = WEP (Wired Equivalent Privacy) with 40-bit key [IEEE 802.11]
237 # If not set, this defaults to: CCMP TKIP WEP104 WEP40
238 #
239 # psk: WPA preshared key; 256-bit pre-shared key
240 # The key used in WPA-PSK mode can be entered either as 64 hex-digits, i.e.,
241 # 32 bytes or as an ASCII passphrase (in which case, the real PSK will be
242 # generated using the passphrase and SSID). ASCII passphrase must be between
243 # 8 and 63 characters (inclusive).
244 # This field is not needed, if WPA-EAP is used.
245 # Note: Separate tool, wpa_passphrase, can be used to generate 256-bit keys
246 # from ASCII passphrase. This process uses lot of CPU and wpa_supplicant
247 # startup and reconfiguration time can be optimized by generating the PSK only
248 # only when the passphrase or SSID has actually changed.
249 #
250 # eapol_flags: IEEE 802.1X/EAPOL options (bit field)
251 # Dynamic WEP key required for non-WPA mode
252 # bit0 (1): require dynamically generated unicast WEP key
253 # bit1 (2): require dynamically generated broadcast WEP key
254 #       (3 = require both keys; default)
255 # Note: When using wired authentication, eapol_flags must be set to 0 for the
256 # authentication to be completed successfully.
257 #
258 # mixed_cell: This option can be used to configure whether so called mixed
259 # cells, i.e., networks that use both plaintext and encryption in the same
260 # SSID, are allowed when selecting a BSS form scan results.
261 # 0 = disabled (default)
262 # 1 = enabled
263 #
264 # proactive_key_caching:
265 # Enable/disable opportunistic PMKSA caching for WPA2.
266 # 0 = disabled (default)
267 # 1 = enabled
268 #
269 # wep_key0..3: Static WEP key (ASCII in double quotation, e.g. "abcde" or
270 # hex without quotation, e.g., 0102030405)
271 # wep_tx_keyidx: Default WEP key index (TX) (0..3)
272 #
273 # peerkey: Whether PeerKey negotiation for direct links (IEEE 802.11e DLS) is
274 # allowed. This is only used with RSN/WPA2.
275 # 0 = disabled (default)
276 # 1 = enabled
277 #peerkey=1
278 #
279 # wpa_ptk_rekey: Maximum lifetime for PTK in seconds. This can be used to
280 # enforce rekeying of PTK to mitigate some attacks against TKIP deficiencies.
281 #
282 # Following fields are only used with internal EAP implementation.
283 # eap: space-separated list of accepted EAP methods
284 #       MD5 = EAP-MD5 (unsecure and does not generate keying material ->
285 #                       cannot be used with WPA; to be used as a Phase 2 method
286 #                       with EAP-PEAP or EAP-TTLS)
287 #       MSCHAPV2 = EAP-MSCHAPv2 (cannot be used separately with WPA; to be used
288 #               as a Phase 2 method with EAP-PEAP or EAP-TTLS)
289 #       OTP = EAP-OTP (cannot be used separately with WPA; to be used
290 #               as a Phase 2 method with EAP-PEAP or EAP-TTLS)
291 #       GTC = EAP-GTC (cannot be used separately with WPA; to be used
292 #               as a Phase 2 method with EAP-PEAP or EAP-TTLS)
293 #       TLS = EAP-TLS (client and server certificate)
294 #       PEAP = EAP-PEAP (with tunnelled EAP authentication)
295 #       TTLS = EAP-TTLS (with tunnelled EAP or PAP/CHAP/MSCHAP/MSCHAPV2
296 #                        authentication)
297 #       If not set, all compiled in methods are allowed.
298 #
299 # identity: Identity string for EAP
300 #       This field is also used to configure user NAI for
301 #       EAP-PSK/PAX/SAKE/GPSK.
302 # anonymous_identity: Anonymous identity string for EAP (to be used as the
303 #       unencrypted identity with EAP types that support different tunnelled
304 #       identity, e.g., EAP-TTLS)
305 # password: Password string for EAP. This field can include either the
306 #       plaintext password (using ASCII or hex string) or a NtPasswordHash
307 #       (16-byte MD4 hash of password) in hash:<32 hex digits> format.
308 #       NtPasswordHash can only be used when the password is for MSCHAPv2 or
309 #       MSCHAP (EAP-MSCHAPv2, EAP-TTLS/MSCHAPv2, EAP-TTLS/MSCHAP, LEAP).
310 #       EAP-PSK (128-bit PSK), EAP-PAX (128-bit PSK), and EAP-SAKE (256-bit
311 #       PSK) is also configured using this field. For EAP-GPSK, this is a
312 #       variable length PSK.
313 # ca_cert: File path to CA certificate file (PEM/DER). This file can have one
314 #       or more trusted CA certificates. If ca_cert and ca_path are not
315 #       included, server certificate will not be verified. This is insecure and
316 #       a trusted CA certificate should always be configured when using
317 #       EAP-TLS/TTLS/PEAP. Full path should be used since working directory may
318 #       change when wpa_supplicant is run in the background.
319 #       On Windows, trusted CA certificates can be loaded from the system
320 #       certificate store by setting this to cert_store://<name>, e.g.,
321 #       ca_cert="cert_store://CA" or ca_cert="cert_store://ROOT".
322 #       Note that when running wpa_supplicant as an application, the user
323 #       certificate store (My user account) is used, whereas computer store
324 #       (Computer account) is used when running wpasvc as a service.
325 # ca_path: Directory path for CA certificate files (PEM). This path may
326 #       contain multiple CA certificates in OpenSSL format. Common use for this
327 #       is to point to system trusted CA list which is often installed into
328 #       directory like /etc/ssl/certs. If configured, these certificates are
329 #       added to the list of trusted CAs. ca_cert may also be included in that
330 #       case, but it is not required.
331 # client_cert: File path to client certificate file (PEM/DER)
332 #       Full path should be used since working directory may change when
333 #       wpa_supplicant is run in the background.
334 #       Alternatively, a named configuration blob can be used by setting this
335 #       to blob://<blob name>.
336 # private_key: File path to client private key file (PEM/DER/PFX)
337 #       When PKCS#12/PFX file (.p12/.pfx) is used, client_cert should be
338 #       commented out. Both the private key and certificate will be read from
339 #       the PKCS#12 file in this case. Full path should be used since working
340 #       directory may change when wpa_supplicant is run in the background.
341 #       Windows certificate store can be used by leaving client_cert out and
342 #       configuring private_key in one of the following formats:
343 #       cert://substring_to_match
344 #       hash://certificate_thumbprint_in_hex
345 #       for example: private_key="hash://63093aa9c47f56ae88334c7b65a4"
346 #       Note that when running wpa_supplicant as an application, the user
347 #       certificate store (My user account) is used, whereas computer store
348 #       (Computer account) is used when running wpasvc as a service.
349 #       Alternatively, a named configuration blob can be used by setting this
350 #       to blob://<blob name>.
351 # private_key_passwd: Password for private key file (if left out, this will be
352 #       asked through control interface)
353 # dh_file: File path to DH/DSA parameters file (in PEM format)
354 #       This is an optional configuration file for setting parameters for an
355 #       ephemeral DH key exchange. In most cases, the default RSA
356 #       authentication does not use this configuration. However, it is possible
357 #       setup RSA to use ephemeral DH key exchange. In addition, ciphers with
358 #       DSA keys always use ephemeral DH keys. This can be used to achieve
359 #       forward secrecy. If the file is in DSA parameters format, it will be
360 #       automatically converted into DH params.
361 # subject_match: Substring to be matched against the subject of the
362 #       authentication server certificate. If this string is set, the server
363 #       sertificate is only accepted if it contains this string in the subject.
364 #       The subject string is in following format:
365 #       /C=US/ST=CA/L=San Francisco/CN=Test AS/emailAddress=as@example.com
366 # altsubject_match: Semicolon separated string of entries to be matched against
367 #       the alternative subject name of the authentication server certificate.
368 #       If this string is set, the server sertificate is only accepted if it
369 #       contains one of the entries in an alternative subject name extension.
370 #       altSubjectName string is in following format: TYPE:VALUE
371 #       Example: EMAIL:server@example.com
372 #       Example: DNS:server.example.com;DNS:server2.example.com
373 #       Following types are supported: EMAIL, DNS, URI
374 # phase1: Phase1 (outer authentication, i.e., TLS tunnel) parameters
375 #       (string with field-value pairs, e.g., "peapver=0" or
376 #       "peapver=1 peaplabel=1")
377 #       'peapver' can be used to force which PEAP version (0 or 1) is used.
378 #       'peaplabel=1' can be used to force new label, "client PEAP encryption",
379 #       to be used during key derivation when PEAPv1 or newer. Most existing
380 #       PEAPv1 implementation seem to be using the old label, "client EAP
381 #       encryption", and wpa_supplicant is now using that as the default value.
382 #       Some servers, e.g., Radiator, may require peaplabel=1 configuration to
383 #       interoperate with PEAPv1; see eap_testing.txt for more details.
384 #       'peap_outer_success=0' can be used to terminate PEAP authentication on
385 #       tunneled EAP-Success. This is required with some RADIUS servers that
386 #       implement draft-josefsson-pppext-eap-tls-eap-05.txt (e.g.,
387 #       Lucent NavisRadius v4.4.0 with PEAP in "IETF Draft 5" mode)
388 #       include_tls_length=1 can be used to force wpa_supplicant to include
389 #       TLS Message Length field in all TLS messages even if they are not
390 #       fragmented.
391 #       sim_min_num_chal=3 can be used to configure EAP-SIM to require three
392 #       challenges (by default, it accepts 2 or 3)
393 #       result_ind=1 can be used to enable EAP-SIM and EAP-AKA to use
394 #       protected result indication.
395 #       'crypto_binding' option can be used to control PEAPv0 cryptobinding
396 #       behavior:
397 #        * 0 = do not use cryptobinding
398 #        * 1 = use cryptobinding if server supports it (default)
399 #        * 2 = require cryptobinding
400 # phase2: Phase2 (inner authentication with TLS tunnel) parameters
401 #       (string with field-value pairs, e.g., "auth=MSCHAPV2" for EAP-PEAP or
402 #       "autheap=MSCHAPV2 autheap=MD5" for EAP-TTLS)
403 # Following certificate/private key fields are used in inner Phase2
404 # authentication when using EAP-TTLS or EAP-PEAP.
405 # ca_cert2: File path to CA certificate file. This file can have one or more
406 #       trusted CA certificates. If ca_cert2 and ca_path2 are not included,
407 #       server certificate will not be verified. This is insecure and a trusted
408 #       CA certificate should always be configured.
409 # ca_path2: Directory path for CA certificate files (PEM)
410 # client_cert2: File path to client certificate file
411 # private_key2: File path to client private key file
412 # private_key2_passwd: Password for private key file
413 # dh_file2: File path to DH/DSA parameters file (in PEM format)
414 # subject_match2: Substring to be matched against the subject of the
415 #       authentication server certificate.
416 # altsubject_match2: Substring to be matched against the alternative subject
417 #       name of the authentication server certificate.
418 #
419 # fragment_size: Maximum EAP fragment size in bytes (default 1398).
420 #       This value limits the fragment size for EAP methods that support
421 #       fragmentation (e.g., EAP-TLS and EAP-PEAP). This value should be set
422 #       small enough to make the EAP messages fit in MTU of the network
423 #       interface used for EAPOL. The default value is suitable for most
424 #       cases.
425 #
426 # EAP-FAST variables:
427 # pac_file: File path for the PAC entries. wpa_supplicant will need to be able
428 #       to create this file and write updates to it when PAC is being
429 #       provisioned or refreshed. Full path to the file should be used since
430 #       working directory may change when wpa_supplicant is run in the
431 #       background. Alternatively, a named configuration blob can be used by
432 #       setting this to blob://<blob name>
433 # phase1: fast_provisioning option can be used to enable in-line provisioning
434 #         of EAP-FAST credentials (PAC):
435 #         0 = disabled,
436 #         1 = allow unauthenticated provisioning,
437 #         2 = allow authenticated provisioning,
438 #         3 = allow both unauthenticated and authenticated provisioning
439 #       fast_max_pac_list_len=<num> option can be used to set the maximum
440 #               number of PAC entries to store in a PAC list (default: 10)
441 #       fast_pac_format=binary option can be used to select binary format for
442 #               storing PAC entries in order to save some space (the default
443 #               text format uses about 2.5 times the size of minimal binary
444 #               format)
445 #
446 # wpa_supplicant supports number of "EAP workarounds" to work around
447 # interoperability issues with incorrectly behaving authentication servers.
448 # These are enabled by default because some of the issues are present in large
449 # number of authentication servers. Strict EAP conformance mode can be
450 # configured by disabling workarounds with eap_workaround=0.
451
452 # Example blocks:
453
454 # Simple case: WPA-PSK, PSK as an ASCII passphrase, allow all valid ciphers
455 network={
456         ssid="simple"
457         psk="very secret passphrase"
458         priority=5
459 }
460
461 # Same as previous, but request SSID-specific scanning (for APs that reject
462 # broadcast SSID)
463 network={
464         ssid="second ssid"
465         scan_ssid=1
466         psk="very secret passphrase"
467         priority=2
468 }
469
470 # Only WPA-PSK is used. Any valid cipher combination is accepted.
471 network={
472         ssid="example"
473         proto=WPA
474         key_mgmt=WPA-PSK
475         pairwise=CCMP TKIP
476         group=CCMP TKIP WEP104 WEP40
477         psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
478         priority=2
479 }
480
481 # WPA-Personal(PSK) with TKIP and enforcement for frequent PTK rekeying
482 network={
483         ssid="example"
484         proto=WPA
485         key_mgmt=WPA-PSK
486         pairwise=TKIP
487         group=TKIP
488         psk="not so secure passphrase"
489         wpa_ptk_rekey=600
490 }
491
492 # Only WPA-EAP is used. Both CCMP and TKIP is accepted. An AP that used WEP104
493 # or WEP40 as the group cipher will not be accepted.
494 network={
495         ssid="example"
496         proto=RSN
497         key_mgmt=WPA-EAP
498         pairwise=CCMP TKIP
499         group=CCMP TKIP
500         eap=TLS
501         identity="user@example.com"
502         ca_cert="/etc/cert/ca.pem"
503         client_cert="/etc/cert/user.pem"
504         private_key="/etc/cert/user.prv"
505         private_key_passwd="password"
506         priority=1
507 }
508
509 # EAP-PEAP/MSCHAPv2 configuration for RADIUS servers that use the new peaplabel
510 # (e.g., Radiator)
511 network={
512         ssid="example"
513         key_mgmt=WPA-EAP
514         eap=PEAP
515         identity="user@example.com"
516         password="foobar"
517         ca_cert="/etc/cert/ca.pem"
518         phase1="peaplabel=1"
519         phase2="auth=MSCHAPV2"
520         priority=10
521 }
522
523 # EAP-TTLS/EAP-MD5-Challenge configuration with anonymous identity for the
524 # unencrypted use. Real identity is sent only within an encrypted TLS tunnel.
525 network={
526         ssid="example"
527         key_mgmt=WPA-EAP
528         eap=TTLS
529         identity="user@example.com"
530         anonymous_identity="anonymous@example.com"
531         password="foobar"
532         ca_cert="/etc/cert/ca.pem"
533         priority=2
534 }
535
536 # EAP-TTLS/MSCHAPv2 configuration with anonymous identity for the unencrypted
537 # use. Real identity is sent only within an encrypted TLS tunnel.
538 network={
539         ssid="example"
540         key_mgmt=WPA-EAP
541         eap=TTLS
542         identity="user@example.com"
543         anonymous_identity="anonymous@example.com"
544         password="foobar"
545         ca_cert="/etc/cert/ca.pem"
546         phase2="auth=MSCHAPV2"
547 }
548
549 # WPA-EAP, EAP-TTLS with different CA certificate used for outer and inner
550 # authentication.
551 network={
552         ssid="example"
553         key_mgmt=WPA-EAP
554         eap=TTLS
555         # Phase1 / outer authentication
556         anonymous_identity="anonymous@example.com"
557         ca_cert="/etc/cert/ca.pem"
558         # Phase 2 / inner authentication
559         phase2="autheap=TLS"
560         ca_cert2="/etc/cert/ca2.pem"
561         client_cert2="/etc/cer/user.pem"
562         private_key2="/etc/cer/user.prv"
563         private_key2_passwd="password"
564         priority=2
565 }
566
567 # Both WPA-PSK and WPA-EAP is accepted. Only CCMP is accepted as pairwise and
568 # group cipher.
569 network={
570         ssid="example"
571         bssid=00:11:22:33:44:55
572         proto=WPA RSN
573         key_mgmt=WPA-PSK WPA-EAP
574         pairwise=CCMP
575         group=CCMP
576         psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
577 }
578
579 # Special characters in SSID, so use hex string. Default to WPA-PSK, WPA-EAP
580 # and all valid ciphers.
581 network={
582         ssid=00010203
583         psk=000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
584 }
585
586
587 # EAP-SIM with a GSM SIM or USIM
588 network={
589         ssid="eap-sim-test"
590         key_mgmt=WPA-EAP
591         eap=SIM
592         pin="1234"
593         pcsc=""
594 }
595
596
597 # EAP-PSK
598 network={
599         ssid="eap-psk-test"
600         key_mgmt=WPA-EAP
601         eap=PSK
602         anonymous_identity="eap_psk_user"
603         password=06b4be19da289f475aa46a33cb793029
604         identity="eap_psk_user@example.com"
605 }
606
607
608 # IEEE 802.1X/EAPOL with dynamically generated WEP keys (i.e., no WPA) using
609 # EAP-TLS for authentication and key generation; require both unicast and
610 # broadcast WEP keys.
611 network={
612         ssid="1x-test"
613         key_mgmt=IEEE8021X
614         eap=TLS
615         identity="user@example.com"
616         ca_cert="/etc/cert/ca.pem"
617         client_cert="/etc/cert/user.pem"
618         private_key="/etc/cert/user.prv"
619         private_key_passwd="password"
620         eapol_flags=3
621 }
622
623
624 # LEAP with dynamic WEP keys
625 network={
626         ssid="leap-example"
627         key_mgmt=IEEE8021X
628         eap=LEAP
629         identity="user"
630         password="foobar"
631 }
632
633 # EAP-IKEv2 using shared secrets for both server and peer authentication
634 network={
635         ssid="ikev2-example"
636         key_mgmt=WPA-EAP
637         eap=IKEV2
638         identity="user"
639         password="foobar"
640 }
641
642 # EAP-FAST with WPA (WPA or WPA2)
643 network={
644         ssid="eap-fast-test"
645         key_mgmt=WPA-EAP
646         eap=FAST
647         anonymous_identity="FAST-000102030405"
648         identity="username"
649         password="password"
650         phase1="fast_provisioning=1"
651         pac_file="/etc/wpa_supplicant.eap-fast-pac"
652 }
653
654 network={
655         ssid="eap-fast-test"
656         key_mgmt=WPA-EAP
657         eap=FAST
658         anonymous_identity="FAST-000102030405"
659         identity="username"
660         password="password"
661         phase1="fast_provisioning=1"
662         pac_file="blob://eap-fast-pac"
663 }
664
665 # Plaintext connection (no WPA, no IEEE 802.1X)
666 network={
667         ssid="plaintext-test"
668         key_mgmt=NONE
669 }
670
671
672 # Shared WEP key connection (no WPA, no IEEE 802.1X)
673 network={
674         ssid="static-wep-test"
675         key_mgmt=NONE
676         wep_key0="abcde"
677         wep_key1=0102030405
678         wep_key2="1234567890123"
679         wep_tx_keyidx=0
680         priority=5
681 }
682
683
684 # Shared WEP key connection (no WPA, no IEEE 802.1X) using Shared Key
685 # IEEE 802.11 authentication
686 network={
687         ssid="static-wep-test2"
688         key_mgmt=NONE
689         wep_key0="abcde"
690         wep_key1=0102030405
691         wep_key2="1234567890123"
692         wep_tx_keyidx=0
693         priority=5
694         auth_alg=SHARED
695 }
696
697
698 # IBSS/ad-hoc network with WPA-None/TKIP.
699 network={
700         ssid="test adhoc"
701         mode=1
702         frequency=2412
703         proto=WPA
704         key_mgmt=WPA-NONE
705         pairwise=NONE
706         group=TKIP
707         psk="secret passphrase"
708 }
709
710
711 # Catch all example that allows more or less all configuration modes
712 network={
713         ssid="example"
714         scan_ssid=1
715         key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
716         pairwise=CCMP TKIP
717         group=CCMP TKIP WEP104 WEP40
718         psk="very secret passphrase"
719         eap=TTLS PEAP TLS
720         identity="user@example.com"
721         password="foobar"
722         ca_cert="/etc/cert/ca.pem"
723         client_cert="/etc/cert/user.pem"
724         private_key="/etc/cert/user.prv"
725         private_key_passwd="password"
726         phase1="peaplabel=0"
727 }
728
729 # Example of EAP-TLS with smartcard (openssl engine)
730 network={
731         ssid="example"
732         key_mgmt=WPA-EAP
733         eap=TLS
734         proto=RSN
735         pairwise=CCMP TKIP
736         group=CCMP TKIP
737         identity="user@example.com"
738         ca_cert="/etc/cert/ca.pem"
739         client_cert="/etc/cert/user.pem"
740
741         engine=1
742
743         # The engine configured here must be available. Look at
744         # OpenSSL engine support in the global section.
745         # The key available through the engine must be the private key
746         # matching the client certificate configured above.
747
748         # use the opensc engine
749         #engine_id="opensc"
750         #key_id="45"
751
752         # use the pkcs11 engine
753         engine_id="pkcs11"
754         key_id="id_45"
755
756         # Optional PIN configuration; this can be left out and PIN will be
757         # asked through the control interface
758         pin="1234"
759 }
760
761 # Example configuration showing how to use an inlined blob as a CA certificate
762 # data instead of using external file
763 network={
764         ssid="example"
765         key_mgmt=WPA-EAP
766         eap=TTLS
767         identity="user@example.com"
768         anonymous_identity="anonymous@example.com"
769         password="foobar"
770         ca_cert="blob://exampleblob"
771         priority=20
772 }
773
774 blob-base64-exampleblob={
775 SGVsbG8gV29ybGQhCg==
776 }
777
778
779 # Wildcard match for SSID (plaintext APs only). This example select any
780 # open AP regardless of its SSID.
781 network={
782         key_mgmt=NONE
783 }