# VeriKey Web Manager > Zero-install, zero-backend Material 3 web portal for VeriKey ESP32-S3 hardware security keys. Manages FIDO2 Passkeys, OATH 2FA accounts, PINs, signed WebUSB Dual-OTA updates, and NVS-preserving WebSerial recovery flashing directly in Chromium browsers. Canonical URL: https://verikey-web-manager.pages.dev/ ## Hardware & USB Interface - Target Hardware: VeriKey ESP32-S3-N16R8 - USB VID:PID: `0x20A0:0x42D4` (`bcdUSB 0x0210`, `bcdDevice 0x0101`) - WebUSB Interface: Interface 2 (`bInterfaceClass = 0xFF`, 0 endpoints — EP0 vendor control transfers only, `wIndex = 2`) - Windows Driverless Support: WebUSB BOS + Microsoft OS 2.0 WinUSB descriptor scoped to Interface 2 (no Zadig required on `bcdDevice >= 0x0101`) - Coexistence: Interface 0 (CTAPHID) and Interface 1 (CCID OpenPGP/PIV/OATH) remain active with exclusive transport lease arbitration ## WebUSB Wire Protocol (`TUSB_REQ_RCPT_INTERFACE`, `wIndex = 2`) - `0x00` `APDU_CMD` (OUT): Raw ISO 7816-4 C-APDU (OATH AID `A0000005272101` allowlisted; requires unlocked session) - `0x01` `APDU_RESP` (IN): Raw R-APDU (`Data || SW1 SW2`) - `0x02` `STAT` (IN): 1-byte status (`0x00=IDLE`, `0x01=BUSY`, `0x02=UP_NEEDED`, `0x03=SESSION_LOCKED`, `0x04=ERROR`) - `0x03` `SESSION_UNLOCK` (OUT): Requests physical button confirmation to open management session (auto-locks on detach or 5-minute idle) - `0x10` `CTAP_MGMT_CMD` (OUT): Allowlisted CTAP2 management commands (`0x04` GetInfo, `0x06` ClientPIN, `0x07` Reset, `0x0A`/`0x41` CredentialManagement) - `0x11` `CTAP_MGMT_RESP` (IN): `[ctap_status_byte || cbor_map]` - `0x20` `CANCEL` (OUT): Immediately aborts an active physical touch / User Presence wait - `0x30` `OTA_INFO` (IN): Running slot (`ota_0`/`ota_1`), firmware version, max chunk size (`<= 2048` B), partition size, signature policy - `0x31` `OTA_BEGIN` (OUT): `[u32 total_size, u8 sha256[32], u8 ed25519_sig[64]]` + physical touch authorization - `0x32` `OTA_DATA` (OUT): `<= 2048` B chunk with monotonic `wValue = chunk_idx` - `0x33` `OTA_STAT` (IN): `[u8 state, u8 err_code, u16 last_chunk_idx]` - `0x34` `OTA_COMMIT` (OUT): Verifies SHA-256, Ed25519 signature, `0xABCD5432` magic, anti-downgrade, sets boot partition, and reboots - `0x35` `OTA_ABORT` (OUT): Aborts active OTA session cleanly and returns to `IDLE` ## Capabilities - **Passkeys (`#passkeys`)**: FIDO2 PIN unlock (volatile memory only, 5-minute idle auto-lock), discoverable credential capacity bar, RP-grouped credential list, and confirmed passkey deletion. - **2FA (`#oath`)**: Live 30s TOTP codes (auto-paused when tab is hidden or idle 5 minutes), Touch-to-Reveal (`0x7C`), HOTP (`0x77`), OATH password validation (PBKDF2-HMAC-SHA1), and `+ Add Account` via `otpauth://` URI or manual entry. - **PIN & Reset (`#pin-reset`)**: Set/change FIDO2 PIN (4–63 UTF-8 bytes), set/change/remove OATH password, and two-step FIDO2 Factory Reset (`authenticatorReset 0x07`) guided for the 10-second USB boot window. - **Firmware (`#firmware`)**: Same-origin `./firmware/manifest.json` release catalog, Ed25519-signed WebUSB Dual-OTA (`ota_0 <-> ota_1`, preserving `canokey_lfs`), and WebSerial ROM Bootloader recovery flashing. ## ESP32-S3 WebSerial Recovery Flash Offsets Default recovery flashes discrete segments and skips `0x11000–0x17FFF` (`nvs`/`nvs_keys`) and `0x420000` (`canokey_lfs`) to preserve all saved Passkeys and 2FA accounts: - `0x0`: `bootloader.bin` - `0x10000`: `partition-table.bin` - `0x18000`: `ota_data_initial.bin` (resets active boot slot to `ota_0`) - `0x20000`: `verikey.bin` (app binary; validated for `esp_app_desc_t` magic `0xABCD5432` at offset `0x20`) Destructive Merged `0x0` flashing overwrites `nvs` and `canokey_lfs`, permanently erasing all credentials, and is gated behind a collapsed danger accordion requiring typed `WIPE` confirmation. ## Troubleshooting - **Browser Support**: WebUSB and WebSerial require Chromium (Chrome, Edge, or Brave). Non-Chromium browsers can still browse documentation and download firmware releases. - **Windows**: `bcdDevice 0x0101` auto-binds WinUSB to Interface 2. Devices running older firmware (`bcdDevice < 0x0101`) should be updated once via WebSerial Recovery. - **Linux (`udev`)**: Add `/etc/udev/rules.d/69-verikey.rules`: `SUBSYSTEM=="usb", ATTR{idVendor}=="20a0", ATTR{idProduct}=="42d4", MODE="0666", GROUP="plugdev"` Then run `sudo udevadm control --reload-rules && sudo udevadm trigger` and replug VeriKey. - **Competing Software**: Close `pcscd`, Yubico Authenticator, or serial monitors if WebUSB reports `BUSY` or cannot claim Interface 2. - **ESP32-S3 ROM Bootloader**: Hold `BOOT`, tap `RESET`, then release `BOOT` before connecting via WebSerial.