yubico-piv-tool
« Back to VersTracker
Description:
Command-line tool for the YubiKey PIV application
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  @Yubico  |  formulae.brew.sh
Category: Security
Tags: yubikey piv security smart-card authentication cryptography
Install: brew install yubico-piv-tool
About:
Yubico PIV Tool is a command-line utility for interacting with the Personal Identity Verification (PIV) application on YubiKeys. It enables users to manage keys and certificates, perform digital signatures, and encrypt or decrypt data. The tool is essential for developers and security professionals configuring hardware-backed authentication and secure communication channels.
Key Features:
  • Manage private keys and X.509 certificates on the YubiKey
  • Perform PIN/PUK management and device reset operations
  • Support for RSA and ECC key generation and operations
  • Import/export and generate self-signed certificates
  • Interactive and scriptable command-line interface
Use Cases:
  • Configuring a YubiKey for use as a smart card for user authentication
  • Generating and storing certificate signing requests (CSRs) on hardware
  • Setting up a YubiKey for SSH authentication using PIV certificates
  • Managing enterprise smart card deployments and certificate lifecycle
Alternatives:
  • ykman – The YubiKey Manager (ykman) is a more modern, Python-based tool that also supports FIDO2 and OTP applications, whereas yubico-piv-tool is focused specifically on the PIV applet.
  • OpenSC – OpenSC provides a broader suite of smart card utilities and libraries, while yubico-piv-tool is a dedicated, streamlined utility for YubiKey's PIV functionality.
Version History
Detected Version Rev Change Commit
Sep 15, 2025 11:17am 0 VERSION_BUMP 27d45076
Dec 19, 2024 11:49am 0 VERSION_BUMP 7495e2e4
Dec 19, 2024 11:15am 0 VERSION_BUMP 7354c64c
Nov 13, 2024 10:49am 0 VERSION_BUMP e1ef586e
Sep 12, 2024 5:11pm 0 VERSION_BUMP e4fe2e0b
Sep 12, 2024 4:10pm 0 VERSION_BUMP f39c8f82