pkg.soopen package index

brew / rank 4030

Install pkcs11-tools with Homebrew

Tools to manage objects on PKCS#11 crypotographic tokens. Version 3.1.0 via Homebrew; verified 2026-09-11.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install pkcs11-tools

local Homebrew formula metadata

overview

Package summary

Tools to manage objects on PKCS#11 crypotographic tokens

Commands and aliases

  • masqreq
  • p11cat
  • p11cp
  • p11importcert
  • p11importdata
  • p11importpubk
  • p11init
  • p11kcv
  • p11keycomp
  • p11keygen
  • p11ls
  • p11mkcert
  • p11more
  • p11mv
  • p11od
  • p11req
  • p11rewrap
  • p11rm
  • p11setattr
  • p11slotinfo
  • p11unwrap
  • p11wrap
  • with_aws
  • with_beid
  • with_kryoptic
  • with_luna
  • with_nfast
  • with_nss
  • with_pkcs11_common
  • with_softhsm
  • with_utimaco
  • with_yubico

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • July 2021: Version 2.4 added template support to numerous key-management commands.
  • October 2021: Version 2.5 added CKA_ALLOWED_MECHANISMS support and advanced the wrapped-key grammar.
  • June 2023: Version 2.6 added JWK output to key-generation and wrapping commands.
  • Later development: The toolkit moved to OpenSSL 3 and added PKCS#11 v3.2 post-quantum algorithms.

Related projects

  • PKCS#11 is the standard interface around which the toolkit is built.
  • SoftHSM, NSS, and Kryoptic are supported software-token implementations.
  • libpkcs11shim can be installed separately to trace PKCS#11 calls through the wrapper scripts.

Sources

  • Official installation guide: https://github.com/Mastercard/pkcs11-tools/blob/master/docs/INSTALL.md
  • Official manual: https://github.com/Mastercard/pkcs11-tools/blob/master/docs/MANUAL.md
  • Official repository: https://github.com/Mastercard/pkcs11-tools

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
./.pkcs11rc./.pkcs11rc.<vendor>~/.pkcs11rc~/.pkcs11rc.<vendor>

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
./.pkcs11rc./.pkcs11rc.<vendor>~/.pkcs11rc~/.pkcs11rc.<vendor>

executables

Installed executables

CommandKindExposureNote
masqreqcliglobal executable
p11catcliglobal executable
p11cpcliglobal executable
p11importcertcliglobal executable
p11importdatacliglobal executable
p11importpubkcliglobal executable
p11initcliglobal executable
p11kcvcliglobal executable
p11keycompcliglobal executable
p11keygencliglobal executable
p11lscliglobal executable
p11mkcertcliglobal executable
p11morecliglobal executable
p11mvcliglobal executable
p11odcliglobal executable
p11reqcliglobal executable
p11rewrapcliglobal executable
p11rmcliglobal executable
p11setattrcliglobal executable
p11slotinfocliglobal executable
p11unwrapcliglobal executable
p11wrapcliglobal executable
with_awscliglobal executable
with_beidcliglobal executable
with_kryopticcliglobal executable
with_lunacliglobal executable
with_nfastcliglobal executable
with_nsscliglobal executable
with_pkcs11_commoncliglobal executable
with_softhsmcliglobal executable
with_utimacocliglobal executable
with_yubicocliglobal executable

freshness

Version and 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.

page generated2026-09-19
manager version3.1.0
manager updated2026-09-11
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/Mastercard/pkcs11-tools

install metadata

Package metadata

Package keybrew:pkcs11-tools
Version3.1.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/pkcs11-tools
Homepagehttps://github.com/Mastercard/pkcs11-tools
Repositoryhttps://github.com/Mastercard/pkcs11-tools
LicenseApache-2.0
Source archivehttps://github.com/Mastercard/pkcs11-tools/releases/download/v3.1.0/pkcs11-tools-3.1.0.tar.gz
Last updated2026-09-11T13:06:39Z
Pulseupdated
Dependenciesopenssl@3
Build dependenciespkgconf
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepkcs11-tools
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation