🌶️ Chilli

Installing token2 FIDO token on openSUSE Tumbleweed

Setting Up a Token2 FIDO2 Hardware Token on openSUSE Tumbleweed

I recently purchased a USB-C FIDO2 hardware token from Token2 to use with my openSUSE Tumbleweed installation. Unlike standard Yubikeys, this device doesn't work with the default Linux Yubikey software, so you need to build the Token2 software yourself. We'll be building libfido2, which will allow you to use your Token2 key. By the end of this guide, you'll be able to view your hardware information through a basic GUI (gui.py) or via a more useful shell script that lets you actually interact with your Token2 key.

Since the official instructions are for Ubuntu, I'll show you how to adapt them for openSUSE Tumbleweed.

Prerequisites

First, make sure you have git installed:

Download the libfido2 Git Repository

Download the build files with:

Adapting for openSUSE Tumbleweed

The official instructions use Ubuntu's apt package manager with these commands:

For openSUSE, use this command instead to install the equivalent packages:

Building the Library

After zypper installs all the necessary dependencies:

Note the period/full-stop at the very end of the last command - it's crucial, and the build will fail without it!

This should compile without issues and return you to the command prompt when completed.

Building the Application

We're halfway there! Now:

Using the Shell Script

The file fido2-manage.sh in the current directory is a wrapper for the libfido2 library we just compiled. Make it executable:

Testing Your Setup

Stay in the current folder and type:

This will show you a list of commands the script accepts.

Now plug in your FIDO2 key and type:

Your FIDO2 key should now be visible!

Optional: Making the Script Globally Accessible

To make the script accessible from anywhere, not just the current folder:

Using the GUI

The GUI is basic - it only allows you to view information about the key, not modify it:

You should now be able to choose your FIDO2 key from the drop-down menu. Enter your PIN (probably 0000), and you'll see your key's information!


#fido2 #linux #opensuse #token2 #tumbleweed