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