> For the complete documentation index, see [llms.txt](https://docs.defguard.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.defguard.net/support-1/troubleshooting-guides/webauthn-security-keys.md).

# WebAuthn security keys

Currently, only security keys that can be configured as **passkeys** are supported.

**Passkeys** are a modern replacement for traditional passwords, based on WebAuthn and FIDO2 standards. They enable passwordless authentication by verifying both possession of a device and an additional user verification step (such as biometrics, PIN entry, or a user gesture).

For a security key to be supported, it must be able to correctly set the **User Verification (UV)** flag during the WebAuthn authentication flow. The UV flag indicates that the key has confirmed that the user is physically present and actively authenticating.

Some older or limited-functionality security keys do not support the necessary mechanisms (such as built-in biometrics or PIN prompts) to perform user verification. As a result, they **cannot set the UV flag** and are **not supported** for passkey use.

{% hint style="danger" %}
Attempting to register an **unsupported** security key will result in an **error** during **registration** process.
{% endhint %}

#### Examples of Unsupported Security Keys

* **YubiKey 4 Series** (e.g., YubiKey 4 Nano, YubiKey 4C)
* **YubiKey NEO**
* **Older FIDO U2F-only keys** without FIDO2/WebAuthn support

#### Requirements for Supported Keys

* Must support **passkey** registration and authentication (WebAuthn + FIDO2).
* Must be capable of **user verification** (e.g., PIN entry, biometrics, or touch gestures).

#### Security keys for VPN connections

Security keys that the desktop client uses for VPN connections have two more requirements:

* Defguard checks the key's attestation when the user registers the key in the desktop client. It accepts only certified hardware security keys from its built-in list, for example the YubiKey 5 series. For any other authenticator, such as a phone, Windows Hello, or a passkey in a password manager, registration fails with the message `security key is not a trusted hardware authenticator, update the client or use a certified security key`.
* The key must have a PIN. On macOS and Linux, a key without a PIN fails with a message that contains `CTAP2_ERR_PIN_NOT_SET`.

A passkey from the **Passkeys** section of the user's profile in the web app does not work for VPN connections. See [Using a security key (FIDO2)](https://docs.defguard.net/using-defguard-for-end-users/desktop-client/using-a-security-key-fido2.md).
