# 2. Using "webauthn.io" to register a new Yubikey PIN.

<https://webauthn.io> is a site that allows you to test Passkeys (also known as "Webauthn") on your device.    If you have a new,  unprotected Yubikey,  we can use <https://webauthn.io> to force the initialization to assign a PIN.&#x20;

1. Plug in your unprotected Yubikey
2. Go to <https://webauthn.io>
3. Once at the site,  enter a bogus username (it doesn't matter what) and click on "register".

<figure><img src="/files/2diGnJBXuv5lAJolDV1G" alt=""><figcaption><p>webauthn.io website</p></figcaption></figure>

5. At this point,  you should be prompted to select a device you wish to store your new "Passkey".  Select the "User a different phone, table, or *security key*".&#x20;

![](/files/26FIX1zFHLhoRy68DkyL) &#x20;

6. At this point, you may be prompted with a QR code.   At this point,  press your Yubikey.

<figure><img src="/files/VsIozy1b6UJGPr9ggXNw" alt=""><figcaption><p>QR code or Security Key selection</p></figcaption></figure>

7. At this point,  your browser should detect that your Yubikey is not protected.   You should be prompted to PIN protect your Yubikey.

<figure><img src="/files/wAVNcktVq5AS7iXk9KAb" alt=""><figcaption><p>PIN protect your Yubikey</p></figcaption></figure>

8. Upon verification and hitting "Next",  your Yubikey will be protected by the PIN. &#x20;
9. At this point, you can remove the Yubikey and stop the registration process.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.k9.io/key9-identity/ssh/installation-and-setup/setting-a-yubikey-pin-without-yubikey-software./2.-using-webauthn.io-to-register-a-new-yubikey-pin..md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
