pkcs11-tool
Manage PKCS#11 cryptographic tokens and smart cards
TLDR
List tokens
SYNOPSIS
pkcs11-tool [options]
DESCRIPTION
pkcs11-tool interacts with PKCS#11 cryptographic tokens such as smart cards, USB security keys, and hardware security modules (HSMs). It can list available slots and objects, generate key pairs, sign and verify data, and initialize tokens.
Part of the OpenSC project, it communicates with tokens through PKCS#11 library modules. Different token types require their specific PKCS#11 library, specified with the --module option. Operations on private objects typically require PIN authentication.
PARAMETERS
--list-token-slots
List available slots.--list-objects
List token objects.--keypairgen
Generate key pair.--sign
Sign data.--init-token
Initialize token.--module LIB
PKCS#11 library.--help
Display help.
CAVEATS
Part of OpenSC. Token/reader dependent. PIN required for operations.
HISTORY
pkcs11-tool is part of OpenSC for PKCS#11 token management.
SEE ALSO
p11-kit(1), opensc-tool(1)
