Getting started with Google OpenSK¶
OpenSK released by Google is a fully open-source implementation for security keys written in Rust that supports both FIDO U2F and FIDO2 standards.
OpenSK is based on the FIDO2 specifications, which combine the World Wide Web Consortium’s (W3C) Web Authentication (WebAuthn) specification and FIDO Alliance’s corresponding Client-to-Authenticator Protocol (CTAP).
The nRF52840 MDK USB Dongle works well with OpenSK. Taking advantage of the UF2 Bootloader, you can easily program the OpenSK by just copying the
.uf2-format image to the flash drive.
This guide details how to get started with the OpenSK using the nRF52840 MDK USB Dongle without going through the complete toolchain installation.
Before you start, check that you have the required hardware and software:
- 1x nRF52840 MDK USB Dongle(or w/Case option)
- Latest version of Google Chrome, Mozilla Firefox, Microsoft Edge or Apple Safari
Programming the latest OpenSK firmware¶
Download the latest firmware and complete the following steps to program the firmware:
- Push and hold the button and plug your dongle into the USB port of your computer. Release the button after your dongle is connected. The RGB LED turns green.
- It will mount as a Mass Storage Device called UF2BOOT.
- Drag and drop
opensk-nrf52840_mdk_usb_dongle-<version>.uf2onto the UF2BOOT volume. The RGB LED blinks red fast during flashing.
- Re-plug the dongle and the OpenSK device will start running.
About the Volume Label
The dongle manufactured after July 20 2023 is shipped with the latest UF2 Bootloader 0.7.1, which will mount as a Mass Storage Device called UF2BOOT. If you are running the older bootloader, it will mount as MDK-DONGLE.
After flashing the firmware to your dongle, complete the following steps to test it:
- Visit https://webauthn.io/ in a supported web browser, for example, Google Chrome.
Enter an example username and then click Register. You will be prompted to choose the way to create a passkey. Select USB security key.
Plug the dongle into the USB port of your computer. Red LED and Blue LED are blinking, which asks you to confirm the transaction with a button press.
After the button is pressed, you will be prompted to enter a PIN for your security key. Just enter your PIN and click Next.
Red LED and Blue LED are blinking again and press the button again to complete the request. Then you will see the success notification.
Now try to authenticate by click Authenticate. You will be prompted to enter the PIN you set above. Just enter your PIN and click Next.
Red LED and Blue LED are blinking and you are asked to confirm the request with a button press. Press the button and you will be logged in.
The two-factor authentication (2FA) has been successfully deployed by a growing number of websites and platforms, including Google, social networks, cloud providers, and many others. Happy trying!