> For the complete documentation index, see [llms.txt](https://docs.k9.io/key9-identity/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](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).

# 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="https://2354768316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZbcN0W0VyihswJIdHDaE%2Fuploads%2FL9ht5XeaUlQbbrufcOV8%2Fimage.png?alt=media&amp;token=d7ce7108-90ea-40bb-bda2-351f94f8975a" 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;

![](https://2354768316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZbcN0W0VyihswJIdHDaE%2Fuploads%2FGsRr4rV6ZFfOzuEMjNaS%2Fimage.png?alt=media\&token=a02b4638-03d8-4d41-9cf3-9ca8c968107c) &#x20;

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

<figure><img src="https://2354768316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZbcN0W0VyihswJIdHDaE%2Fuploads%2F1Vf1thlIU9hWqeItyfCi%2Fimage.png?alt=media&amp;token=01e29420-4895-4002-b89e-955d8e2cf1e0" 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="https://2354768316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZbcN0W0VyihswJIdHDaE%2Fuploads%2FG6X7azAdhW8znuuOR8Q8%2Fimage.png?alt=media&amp;token=ea5edd7d-477f-44bd-a35e-b48a56676239" 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.
