macOS
brew install pkcs11-toolslocal Homebrew formula metadata
brew / rank 4030
Tools to manage objects on PKCS#11 crypotographic tokens. Version 3.1.0 via Homebrew; verified 2026-09-11.
install
brew install pkcs11-toolslocal Homebrew formula metadata
overview
Tools to manage objects on PKCS#11 crypotographic tokens
history
PKCS#11 tools is a suite of small command-line programs for managing cryptographic keys, certificates, and other objects across interoperable hardware and software tokens.
pkcs11-tools was created to provide unified, interoperable key-management primitives for cryptographic tokens implementing PKCS#11. The official manual cites underspecified object conventions, differences between Java implementations, cumbersome JVM setup, and proprietary vendor tools as motivations.
The toolkit evolved through releases adding templates and broader attribute handling, CKA_ALLOWED_MECHANISMS support, JWK output, reworked vendor wrappers, OpenSSL 3 migration, and support for the ML-KEM, ML-DSA, and SLH-DSA post-quantum algorithms.
The toolkit targets a range of hardware and software PKCS#11 implementations rather than a single vendor. Official documentation covers major HSM brands and software tokens including SoftHSM, NSS, and Kryoptic, as well as interoperability with IBM and Oracle Java environments.
It is available through Homebrew, while the source documentation also covers Linux, macOS, AIX, Solaris, and cross-compiled Windows builds.
Users select a PKCS#11 library and token by command options or environment variables, then use focused p11 commands to list, inspect, generate, import, move, remove, wrap, or unwrap objects and to create CSRs or certificates.
Vendor-oriented with_* wrappers can auto-detect libraries and read .pkcs11rc or .pkcs11rc.<vendor> files. The search begins in the current directory and proceeds upward to $HOME. These shell-sourced files may contain PKCS11PASSWORD, so they can also act as credential-bearing files and require appropriate permissions.
The project supplies Unix-like commands such as p11ls, p11mv, p11rm, p11od, and p11more for a security API whose vendor tooling is often proprietary and inconsistent. That composable command vocabulary makes heterogeneous HSM and token administration more approachable.
Its breadth extends beyond object inspection to key generation, wrapping, certificate import, CSR creation, token initialization, vendor wrapper scripts, shell completion, and post-quantum PKCS#11 algorithms.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
./.pkcs11rc./.pkcs11rc.<vendor>~/.pkcs11rc~/.pkcs11rc.<vendor>Credential-bearing paths to review before unattended agent runs.
./.pkcs11rc./.pkcs11rc.<vendor>~/.pkcs11rc~/.pkcs11rc.<vendor>executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
masqreq | cli | global executable | |
p11cat | cli | global executable | |
p11cp | cli | global executable | |
p11importcert | cli | global executable | |
p11importdata | cli | global executable | |
p11importpubk | cli | global executable | |
p11init | cli | global executable | |
p11kcv | cli | global executable | |
p11keycomp | cli | global executable | |
p11keygen | cli | global executable | |
p11ls | cli | global executable | |
p11mkcert | cli | global executable | |
p11more | cli | global executable | |
p11mv | cli | global executable | |
p11od | cli | global executable | |
p11req | cli | global executable | |
p11rewrap | cli | global executable | |
p11rm | cli | global executable | |
p11setattr | cli | global executable | |
p11slotinfo | cli | global executable | |
p11unwrap | cli | global executable | |
p11wrap | cli | global executable | |
with_aws | cli | global executable | |
with_beid | cli | global executable | |
with_kryoptic | cli | global executable | |
with_luna | cli | global executable | |
with_nfast | cli | global executable | |
with_nss | cli | global executable | |
with_pkcs11_common | cli | global executable | |
with_softhsm | cli | global executable | |
with_utimaco | cli | global executable | |
with_yubico | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/Mastercard/pkcs11-tools
install metadata
| Package key | brew:pkcs11-tools |
|---|---|
| Version | 3.1.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/pkcs11-tools |
| Homepage | https://github.com/Mastercard/pkcs11-tools |
| Repository | https://github.com/Mastercard/pkcs11-tools |
| License | Apache-2.0 |
| Source archive | https://github.com/Mastercard/pkcs11-tools/releases/download/v3.1.0/pkcs11-tools-3.1.0.tar.gz |
| Last updated | 2026-09-11T13:06:39Z |
| Pulse | updated |
| Dependencies | openssl@3 |
| Build dependencies | pkgconf |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pkcs11-tools |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.