Skip to content

Provides library functionality for FIDO 2.0, including communication with a device over USB.

License

Notifications You must be signed in to change notification settings

andrewkozlik/libfido2

 
 

Repository files navigation

libfido2

Build Status (Travis) windows build status (github actions) License

libfido2 provides library functionality and command-line tools to communicate with a FIDO device over USB, and to verify attestation and assertion signatures.

libfido2 supports the FIDO U2F (CTAP 1) and FIDO 2.0 (CTAP 2) protocols.

For usage, see the examples/ directory.

License

libfido2 is licensed under the BSD 2-clause license. See the LICENSE file for the full license text.

Supported Platforms

libfido2 is known to work on Linux, MacOS, Windows, and OpenBSD.

Documentation

Documentation is available in troff and HTML formats. An online mirror of libfido2's documentation is also available.

Installation

Releases

The current release of libfido2 is 1.3.1. Please consult Yubico’s release page for source and binary releases.

Ubuntu

$ sudo apt-add-repository ppa:yubico/stable
$ sudo apt update
$ sudo apt install libfido2-dev

Or from source, on UNIX-like systems:

$ (rm -rf build && mkdir build && cd build && cmake ..)
$ make -C build
$ sudo make -C build install

Depending on the platform, the PKG_CONFIG_PATH environment variable may need to be set.

libfido2 depends on libcbor and LibreSSL (alternatively, OpenSSL may be used). On Linux, libudev (part of systemd) is also required.

For complete, OS-specific installation instructions, please refer to the .travis/ (Linux, MacOS) and windows/ directories.

On Linux, you will need to add a udev rule to be able to access the FIDO device, or run as root. For example, the udev rule may contain the following:

#udev rule for allowing HID access to Yubico devices for FIDO support.

KERNEL=="hidraw*", SUBSYSTEM=="hidraw", \
  MODE="0664", GROUP="plugdev", ATTRS{idVendor}=="1050"

On Windows 1903 and newer versions, access to FIDO devices has been restricted to applications using the operating system’s native API. Use of libfido2 is still possible in privileged applications.

About

Provides library functionality for FIDO 2.0, including communication with a device over USB.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 91.1%
  • CMake 3.2%
  • Shell 2.5%
  • Gnuplot 1.5%
  • PowerShell 1.1%
  • Makefile 0.4%
  • Dockerfile 0.2%