October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

How to Set Up an ESP32-Based Security Key for WebAuthn Testing

A tested Zephyr route for trying USB WebAuthn registration and sign-in on an ESP32-S3-B, plus the limits of what a successful lab test proves.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You can test browser-based WebAuthn registration and sign-in with an ESP32-based roaming authenticator using Zephyr’s FIDO2 Authenticator sample on a USB-capable ESP32-S3-B board. The sample identifies the weact_esp32s3_b/esp32s3/procpu target as tested for USB HID. This is a lab setup, not evidence that a homemade key is independently evaluated or suitable for protecting valuable accounts.

What you are setting up

WebAuthn is the browser-facing API used by a website to register a public-key credential and later verify an authentication assertion. A hardware security key provides the authenticator behavior behind that browser flow, using FIDO protocols such as CTAP over a supported transport. The W3C Web Authentication Level 2 specification describes credentials scoped to a relying party and lists USB, Bluetooth Low Energy, and NFC as transports for roaming authenticators.

As an Amazon Associate I earn from qualifying purchases.

The W3C describes its purpose this way: “This specification defines an API enabling the creation and use of strong, attested, scoped, public key-based credentials by web applications, for the purpose of strongly authenticating users.” For this walkthrough, the transport is USB and the test relying party is webauthn.io.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose a board and firmware route

Use an ESP32-S3-B board that matches Zephyr’s documented target, weact_esp32s3_b/esp32s3/procpu. The sample lists this target as tested for USB HID. Do not assume that a generic ESP32 board can act as a USB device: board variants differ, and the documented result does not establish compatibility for every ESP32 or ESP32-S3 board.

#1 Best Overall
ESP-WROOM-32 ESP32 ESP-32S Development Board 2.4GHz Dual-Mode WiFi + Bluetooth Dual Cores Microcontroller Processor Integrated with Antenna RF AMP Filter AP STA Compatible with Arduino IDE (3PCS)
  • 2.4GHz Dual Mode WiFi + Bluetooth Development Board
  • Support LWIP protocol, Freertos
  • SupportThree Modes: AP, STA, and AP+STA
  • Ultra-Low power consumption, Compatible with Arduino IDE
  • ESP32 is a safe, reliable, and scalable to a variety of applications

Build and flash Zephyr’s FIDO2 Authenticator sample for the matching board identifier, following the current sample documentation and confirming the Zephyr version and board revision for your hardware. The available setup information does not establish a single version-specific command sequence, so do not substitute another board identifier or copy commands intended for a different Zephyr release.

Run a registration and sign-in test

  1. Flash and connect: After flashing the sample, connect the board to your computer through its USB port.
  2. Open a test relying party: In a compatible browser, open webauthn.io and use a disposable username. Keep this experiment separate from accounts you rely on.
  3. Register: Start the site’s registration flow. When the browser asks for a security key, press the board’s configured user-presence button. If the authenticator or browser flow asks for a PIN, enter or set one as prompted.
  4. Authenticate: Use the newly registered test credential to start sign-in. Press the user-presence button again when prompted.
  5. Record the result precisely: Note separately whether the firmware compiled, was uploaded, enumerated over USB, passed a protocol probe, and completed registration and sign-in in the browser. Compilation alone does not demonstrate that the board works as a USB authenticator or completes a WebAuthn ceremony.

Choose credential and verification settings deliberately

A community ESP32-S3 lab project reports a WebAuthn.io configuration using cross-platform attachment, user verification discouraged, attestation none, ES256, and non-discoverable credentials for non-resident testing. It says discoverable credentials are needed for its resident-credential tests. Those are project-specific reported settings, not universal requirements: browser behavior, relying-party choices, and authenticator firmware can change what works.

Rank #2
ELEGOO 3PCS ESP-32 Dev Boards, ESP-WROOM-32, USB-C, WiFi Bluetooth 4.2
  • Dual-Core Performance Up to 240 MHz: Run sensor processing, wireless communication, automation logic and connected-device tasks on a 32-bit dual-core ESP32 platform designed for responsive embedded and IoT projects
  • Built-in Wi-Fi and Bluetooth 4.2: Connect to 2.4 GHz Wi-Fi networks or use Bluetooth Classic and BLE for wireless sensors, smart devices, remote controls, home automation and other connected projects
  • Flexible Power-Saving Modes: ESP32 power-management features support dynamic clock scaling and low-power operating modes, helping developers reduce energy use in compatible sensing, monitoring and connected-device applications, suitable for battery-powered Internet of Things (IoT) devices.
  • USB-C Programming with CP2102: Connect through USB-C for power, sketch uploads and serial monitoring, while GPIO, UART, SPI and I2C interfaces support sensors, displays, motor drivers and other modules (USB-C cable not included)
  • Over-the-Air Update Support: Configure OTA functionality through a compatible ESP-32 software framework to update deployed firmware over Wi-Fi without reconnecting the board by USB for every revision

Choose user verification for the use case rather than treating a PIN prompt as a failure. Yubico’s WebAuthn readiness guidance notes that second-factor flows commonly discourage user verification to avoid an unnecessary PIN prompt. For an integration test, keep these dimensions distinct:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Transport: USB versus BLE.
  • Authenticator behavior: supported CTAP operations and PIN or user-verification behavior.
  • Credential type: discoverable versus non-discoverable credentials.
  • Evidence: compile, upload, USB enumeration, protocol probe, and an actual browser ceremony.

Know what this ESP32 test does not establish

The cited Zephyr documentation describes the ESP32-S3-B sample for USB HID. Its BLE-tested target on the same documentation page is the nRF54LM20DK, not the cited ESP32 target. The documentation also warns that BLE operations can take longer than USB HID because a BLE connection may disconnect and be re-established between operations. Do not infer a tested BLE setup for this ESP32 board from the USB sample.

Rank #3
ELEGOO ESP-32 Super Starter Kit with Tutorial Compatible with Arduino IDE
  • Powerful ESP-32 Board: Unlock the world of Internet of Things (IoT) and advanced electronics with the heart of this kit: the ESP-32 board. It features a powerful dual-core processor, integrated Wi-Fi and Bluetooth 4.2, making it perfect for building connected, smart devices that communicate with your phone or the cloud. It's fully compatible with the Arduino IDE for easy programming.
  • Super Starter Kit: This kit contains over 35 different modules and electronic components, including sensors, displays, motors, and input devices. From LEDs and buttons to an OLED screen, servo motor, and keypad, you have everything needed to explore a vast range of projects in one box.
  • Step by Step Online Tutorial: Jump right in with our detailed, beginner-friendly tutorial. Access 30+ projects with complete code, clear circuit diagrams, and step-by-step instructions. Learn the fundamentals of electronics, coding, and how to utilize the ESP-32's unique capabilities without any prior experience.
  • Hands-on Learning for All Skill Levels: Perfect for students, makers, engineers, and hobbyists. Start with basic circuits and coding, then progress to intermediate and advanced IoT applications. Build practical projects like weather stations, smart home controllers, remote-controlled devices, and interactive gadgets. The skills you learn are the foundation for real-world innovation.
  • Quality & Great Support: Elegoo is committed to quality. We provide a clear, detailed tutorial guide, refined code, and a well-organized component kit. All modules are carefully selected for reliability and ease of use. Our dedicated technical support team and active online community are ready to help you succeed in your learning journey.

A successful browser ceremony demonstrates that a particular board, firmware, browser, and relying-party flow worked together in that test. It does not establish independent security evaluation or production suitability. A separate ESP32 lab project explicitly labels its implementation lab-only, reinforcing the need to describe results at the level actually demonstrated.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Production security is a separate engineering task

Espressif’s ESP-IDF 5.2 security guidance discusses Secure Boot to ensure only authenticated software executes, flash encryption to protect off-chip flash contents, and encrypted NVS for device-specific data. These platform-level controls do not by themselves certify an authenticator or prove that a WebAuthn implementation is secure.

Rank #4
ESP-WROOM-32 ESP32 ESP-32S Development Board 2.4GHz Dual-Mode WiFi + Bluetooth Dual Cores Microcontroller Processor Integrated with Antenna RF AMP Filter AP STA Compatible with Arduino IDE (1 PCS)
  • 2.4GHz Dual Mode WiFi + Bluetooth Development Board
  • Support LWIP protocol, Freertos;ESP32 is a safe, reliable, and scalable to a variety of applications
  • SupportThree Modes: AP, STA, and AP+STA
  • Ultra-Low power consumption, Compatible with Arduino IDE
  • 1PCS 30Pin ESP32 Development Board 2.4GHz WiFi Dual Cores Microcontroller Integrated with Antenna RF Low Noise Amplifiers Filters

Do not enable eFuses or disable download access casually. Depending on the target and configuration, security settings can have irreversible or recovery consequences; disabling UART download mode can prevent esptool from working. Confirm the exact device, configuration, and recovery plan before changing them.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
HiLetgo ESP-WROOM-32 ESP32 ESP-32S Development Board 2.4GHz Dual-Mode WiFi + Bluetooth Dual Cores Microcontroller Processor Integrated with Antenna RF AMP Filter AP STA for Arduino IDE
  • 2.4GHz Dual Mode WiFi + Bluetooth Development Board
  • Ultra-Low power consumption, works perfectly with the Arduino IDE
  • Support LWIP protocol, Freertos
  • SupportThree Modes: AP, STA, and AP+STA
  • ESP32 is a safe, reliable, and scalable to a variety of applications

Sources and scope

  • Zephyr Project, FIDO2 Authenticator sample documentation: target, USB setup, and browser test flow.
  • W3C, Web Authentication: An API for accessing Public Key Credentials, Level 2 Recommendation, dated April 8, 2021: WebAuthn registration, authentication, and transports.
  • Yubico, WebAuthn Readiness Checklist: choosing user verification for an integration’s use case.
  • Espressif, ESP-IDF Programming Guide v5.2, Security: platform security controls and download-mode caution.
  • Google for Developers, Build your first WebAuthn app: WebAuthn application context.
  • dkyazzentwatwa/esp32-key project README: a separate Waveshare-based lab implementation and its stated limitations.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.