OpenBSD Handbook

    Theme
    • Part I. Install & Configure
      • Introduction to OpenBSD
      • Installing OpenBSD
      • The X Window System
      • Networking on OpenBSD
      • System Configuration
      • OpenBSD Basics
      • Managing Software: Packages and Ports
    • Part II. Daily Operations
      • OpenBSD Desktop Environments
      • Multimedia
      • Printing
      • Linux Compatibility
      • Windows Compatibility
      • Games
    • Part III. System Administration
      • Virtualization
      • Storage and File Systems
      • Updating and Upgrading
      • Localization
      • The OpenBSD Boot Process
      • Security
    • Part IV. Networking & Daemons
      • Services
        • Database
          • MariaDB
          • PostgreSQL
          • Redis
          • memcached
        • Directory
          • YP (NIS)
          • LDAP
        • File
          • NFS
          • Samba
        • FTP Services
          • ftpd
          • ProFTPD
          • vsftpd
          • Pure-FTPd
          • TFTP
        • Mail
          • OpenSMTPD Mail Server
          • Dovecot IMAP and POP3 Server
          • Postfix
          • Exim
          • Rspamd
        • Name
          • Unbound DNS Resolver
          • NSD Authoritative DNS Server
          • BIND DNS Server
        • Networking
          • OpenBGPD
          • rad
          • DHCP on OpenBSD
          • slaacd
        • Web
          • Apache HTTP Server
          • nginx Web Server
          • OpenBSD httpd Web Server
          • relayd Reverse Proxy
        • Logging
          • syslogd
        • Monitoring
          • SNMP
        • Remote Access
          • Audit OpenSSH
          • OpenSSH Server
        • File Synchronization
          • rsync
        • Messaging
          • RabbitMQ Message Broker
        • Time
          • NTP Time Synchronization
      • PF
        • pfctl cheat sheet
        • PF Anchors
        • PF Filter Rules
        • PF Forwarding
        • PF Lists and Macros
        • PF Load Balancing
        • PF Logging
        • PF NAT
        • PF Options
        • PF Policies
        • PF Shortcuts
        • PF Tables
      • Advanced Networking
        • High Availability and State Replication
        • Multi-WAN and Policy-Based Routing
        • VPN and Cryptographic Tunneling
        • Classic and Lightweight Tunnels
        • IPv6 at Scale
        • QoS and Traffic Shaping
        • MPLS and Label Distribution
        • Network Services at Scale
        • Virtualization and Host Networking
        • Large-Scale L2 and L3 Design
        • Telemetry, Logging, and Flow Export
        • Hardening and Operational Safety
        • Reference Architectures
        • Troubleshooting Playbooks
      • Serial Communication
    • Part V. Miscellaneous
      • Virtualization Cheat Sheet
      • OpenBSD Cheatsheet
      • How-to Guides
        • Complete the First 30 Minutes After Installation
        • Check Hardware Compatibility Before Installing
        • Bootstrap Wi-Fi Firmware Without Ethernet
        • Set Up OpenBSD as a Laptop or Workstation
        • Configure Laptop Power Management
        • Run OpenBSD as a Virtual Machine Guest
        • Install OpenBSD on a VPS or Cloud Server
        • Install OpenBSD with Full-Disk Encryption
        • Troubleshoot Web Browsers on OpenBSD
        • Create an Administrator Account with doas and SSH Keys
        • Establish a Conservative Security Baseline
        • Manage OpenBSD with Ansible
        • Recover Access and Reset the Root Password
        • Collect OpenBSD Diagnostic Evidence
        • Configure Secure Remote Access with OpenSSH
        • Set Up WordPress on OpenBSD
        • Build Third-Party Software from Ports
        • Use FIDO Security Keys with OpenSSH
        • Build OpenBSD from Source
        • Configure Wi-Fi Roaming and Wired Failover
        • Dual-Boot OpenBSD on a UEFI System
        • Troubleshoot PF, NAT, and Routing
        • Automate OpenBSD Installation with Autoinstall and PXE
        • Route Multiple VLANs with PF
        • Configure a Road-Warrior WireGuard VPN
        • Troubleshoot Package Installation and Update Failures
        • Route IPv6 Networks without NAT
        • Schedule Recurring Maintenance
        • Plan a Docker Workload Migration to OpenBSD
        • Build a Mail Server with OpenSMTPD, Dovecot, and Rspamd
        • Build a Simple Router and Firewall
        • Monitor an OpenBSD System
        • Back Up and Restore an OpenBSD System
        • Configure softraid RAID1
        • Recover an OpenBSD System That Does Not Boot
        • Install Z shell (zsh)
      • OpenBSD for Linux Users
      • OpenBSD for FreeBSD Users
      • OpenBSD for macOS Users
    • OpenBSD FAQ
    • OpenBSD Architectures
      • OpenBSD Package Search

        wpa_supplicant-2.9p7-openssl

        Package search / Categories / OpenBSD 8.0 release
        โ† Back to search
        OpenBSD branch
        OpenBSD 8.0 releaseCurrent snapshot

        OpenBSD 8.0 release ยท amd64

        IEEE 802.1X supplicant

        Project homepage: https://w1.fi/wpa_supplicant/

        Description

        wpa_supplicant is the implementation of an IEEE 802.1X supplicant for wired (Ethernet PAE) and wireless (WPA/WPA2) authentication. Flavour: openssl (built against OpenSSL instead of LibreSSL) - supports older TLS protocols which may be needed in order to connect to some insecure networks with obsolete authentication servers (see pkg-readme).

        Package information

        Ports path
        security/wpa_supplicant,openssl
        Package architecture
        amd64
        Maintainer
        The OpenBSD ports mailing-list <ports@openbsd.org>
        Categories
        security, net
        Available flavors
        openssl

        Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.

        Direct dependencies

        Library

        • security/pcsc-lite
        • security/openssl/3.5

        Build

        • devel/gmake
        OpenBSD README

        This README contains unresolved ports variables; replace them before using its commands.

        +-----------------------------------------------------------------------
        | Running wpa_supplicant on OpenBSD
        +-----------------------------------------------------------------------
        
        Note for users familiar with wpa_supplicant on other OS
        =======================================================
        On OpenBSD, scanning and joining wireless networks is controlled by the
        kernel and configured by ifconfig(8) commands or /etc/hostname.if, so
        configuration is a little different than you may be used to.
        
        Use of wpa_supplicant on OpenBSD
        ================================
        wpa_supplicant is used for authentication on wired networks using 802.1x
        and for wireless networks using WPA-Enterprise.
        
        On OpenBSD, wpa_supplicant is *not* used for the more common WPA-PSK
        wireless networks. These only need to be configured according to the
        "IEEE 802.11 (WIRELESS DEVICES)" section in ifconfig(8) and the manual
        page for your wireless interface - iwm(4), iwn(4), etc - i.e. by using
        ifconfig(8) commands or hostname.if(5) files.
        
        Configuring networks in wpa_supplicant.conf
        -------------------------------------------
        Add your network login information to wpa_supplicant's configuration in
        ${SYSCONFDIR}/wpa_supplicant.conf - either uncomment and edit the supplied example
        or consult wpa_supplicant documentation or sample configuration from your
        network operator. (In the case of distributed networks like Eduroam, this
        would be from your home institution rather than the local network that
        you're connecting to).
        
        Do not enable "ap_scan" - it is not supported by the OpenBSD support code.
        
        Configuring wireless interfaces for use with WPA-Enterprise
        -----------------------------------------------------------
        For most convenient use, the kernel can be configured to automatically join
        the "best" network from a preconfigured list (it calculates a score based
        on factors including signal strength and security options). This is done
        using ifconfig's "join" command - e.g. to add a network "Laakista Humppa"
        using WPA-Enterprise you could use
        
        # ifconfig iwm0 join "Laakista Humppa" wpa wpaakms 802.1x
        
        Or to configure from boot, add to /etc/hostname.iwm0 - as you would expect
        this may be combined with WPA-PSK networks:
        
        # cat /etc/hostname.iwm0
        join "Laakista Humppa" wpa wpaakms 802.1x
        join "Perjantaina Humpassa" wpa wpakey fridayfriday
        join Lumpiohumppa wpa wpaprotos wpa1,wpa2 wpakey whatsecurity
        inet6 autoconf
        dhcp
        
        If you would like to avoid "join" and connect to a single network only,
        you would instead use "nwid", for example:
        
        # ifconfig iwm0 nwid humppa wpa wpaakms 802.1x up
        
        or to do this and also lock to a specific BSSID:
        
        # ifconfig iwm0 nwid humppa bssid 11:22:33:44:55:66 wpa wpaakms 802.1x up
        
        Starting wpa_supplicant
        -----------------------
        After configuring as above, enable wpa_supplicant via rcctl(8) -
        "rcctl enable wpa_supplicant" as usual. It will attempt to auto detect
        the interface name and type, but if there is a problem with this it can
        be hardcoded instead. For a wireless network on iwm0:
        
        # rcctl set wpa_supplicant flags -c ${SYSCONFDIR}/wpa_supplicant.conf -s -D openbsd -i iwm0
        
        For a 802.1x wired network on ix0:
        
        # rcctl set wpa_supplicant flags -c ${SYSCONFDIR}/wpa_supplicant.conf -s -D wired -i ix0
        
        Then start as normal ("rcctl start wpa_supplicant"). wpa_supplicant should
        automatically authenticate when it notices that the connection is up.
        
        Networks only supporting TLSv1.1 or earlier
        -------------------------------------------
        These obsolete and insecure TLS protocols have been removed from LibreSSL.
        If you must use a legacy network with an insecure authentication server
        which cannot be corrected, you can try installing the "openssl" flavour
        of the wpa_supplicant package and setting some or all of the following
        in wpa_supplicant.conf:
        
        network={
        	# allow ciphers supporting TLSv1.0
        	openssl_ciphers="DEFAULT@SECLEVEL=0"
        	# permit insecure TLS renegotiation (pre-2010)
        	phase1="allow_unsafe_renegotiation=1"
        	...
        }
        

        Package guides

        • Installing and updating packages

        Package details as JSON

        Report a bug