Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Using a FIDO2 Security Key as MFA method in the Desktop Client

Before you start

You need:

  • Defguard desktop client 2.2.0 or newer on Windows, macOS, or Linux. The command-line client does not support security keys.

  • A hardware FIDO2 security key with a PIN set. See the table below for supported keys.

  • A location that accepts Security key as an MFA method. Your administrator sets this up in the location's MFA flow.

Supported security keys

Defguard accepts only physical keys that support FIDO2.

Works
Does not work

YubiKey 5 series (USB-A, USB-C, Nano, NFC), including the FIPS and CCN models

YubiKey 4 and YubiKey NEO

Other FIDO2-certified hardware security keys

Keys that support only U2F

Windows Hello, Touch ID, your phone, or a passkey saved in a password manager

Register the FIDO2 Security Key in Defguard Desktop client

Before you can use the FIDO2 Security key for authenticating to your VPN you have to add it to your profile. You can do that using the Defguard Desktop Client.

Adding the security key using the Desktop client allows you to use the key for both signing in to the web app and while connecting to the VPN.

Follow our separate guide on configuring MFA methods in the Desktop Client.

Connect with the FIDO2 Security Key

On macOS and Linux, keep only one security key plugged in.

If the location accepts more than one MFA method, the client uses the method that you chose for it. To make the security key the default, click the pen icon on the location, select Security key, and click Save changes. See Using Multi-Factor Authentication (MFA).

  1. Click Connect VPN on the location.

  2. Insert the key.

  3. On macOS and Linux, enter the key's PIN and click Verify. On Windows, click Use security key. In the Windows Security window, choose Security key if Windows asks which device to use, and enter the PIN.

  1. Touch the key when it blinks.

  1. If the location's MFA flow has more steps, complete them. When the last step succeeds, the client connects.

In the tray view, the same fields and buttons show on the location card.

To use a different MFA method for one connection, click Other methods.

Troubleshooting

The client shows
What to do

No security key detected

Plug the key in and try again.

More than one security key is connected

Unplug every key except the one that you registered.

Security key timed out waiting to be touched

Try again, and touch the key while it blinks.

This security key needs a PIN

Enter the key's PIN.

A message that contains CTAP2_ERR_PIN_NOT_SET

The key has no PIN. Set a PIN and try again.

Security key rejected the PIN

Check the PIN and try again. If the message says that the key is locked, unplug the key, plug it in again, and try once more. If it still says that the key is locked, the key needs a reset. Contact your administrator.

This security key is not registered for your account

Use the key that you registered, or register this key.

This security key is already registered for your account

You do not have to register this key again. Use it to connect.

Only a hardware security key can be used

In the Windows Security window, choose Security key. Do not choose a phone or Windows Hello.

Security key is not a trusted hardware authenticator

Defguard does not trust this model of key. Update the desktop client, or use a key from Before you start.

If you cannot connect at all, use another MFA method with Other methods, or ask your administrator for help.

Last updated

Was this helpful?