macOS
brew install pkcs11-toolslocal Homebrew formula metadata
安装
brew install pkcs11-toolslocal Homebrew formula metadata
概览
Tools to manage objects on PKCS#11 crypotographic tokens
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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>可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
masqreq | cli | 全局可执行文件 | |
p11cat | cli | 全局可执行文件 | |
p11cp | cli | 全局可执行文件 | |
p11importcert | cli | 全局可执行文件 | |
p11importdata | cli | 全局可执行文件 | |
p11importpubk | cli | 全局可执行文件 | |
p11init | cli | 全局可执行文件 | |
p11kcv | cli | 全局可执行文件 | |
p11keycomp | cli | 全局可执行文件 | |
p11keygen | cli | 全局可执行文件 | |
p11ls | cli | 全局可执行文件 | |
p11mkcert | cli | 全局可执行文件 | |
p11more | cli | 全局可执行文件 | |
p11mv | cli | 全局可执行文件 | |
p11od | cli | 全局可执行文件 | |
p11req | cli | 全局可执行文件 | |
p11rewrap | cli | 全局可执行文件 | |
p11rm | cli | 全局可执行文件 | |
p11setattr | cli | 全局可执行文件 | |
p11slotinfo | cli | 全局可执行文件 | |
p11unwrap | cli | 全局可执行文件 | |
p11wrap | cli | 全局可执行文件 | |
with_aws | cli | 全局可执行文件 | |
with_beid | cli | 全局可执行文件 | |
with_kryoptic | cli | 全局可执行文件 | |
with_luna | cli | 全局可执行文件 | |
with_nfast | cli | 全局可执行文件 | |
with_nss | cli | 全局可执行文件 | |
with_pkcs11_common | cli | 全局可执行文件 | |
with_softhsm | cli | 全局可执行文件 | |
with_utimaco | cli | 全局可执行文件 | |
with_yubico | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/Mastercard/pkcs11-tools
安装元数据
| 软件包键 | brew:pkcs11-tools |
|---|---|
| 版本 | 3.1.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/pkcs11-tools |
| 主页 | https://github.com/Mastercard/pkcs11-tools |
| 仓库 | https://github.com/Mastercard/pkcs11-tools |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/Mastercard/pkcs11-tools/releases/download/v3.1.0/pkcs11-tools-3.1.0.tar.gz |
| 最后更新 | 2026-09-11T13:06:39Z |
| Pulse | updated |
| 依赖 | openssl@3 |
| 构建依赖 | pkgconf |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.