pkg.soopen package index

brew / 排名 4030

使用 Homebrew 安装 pkcs11-tools

查看 pkcs11-tools 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install pkcs11-tools

local Homebrew formula metadata

概览

软件包摘要

Tools to manage objects on PKCS#11 crypotographic tokens

命令和别名

  • 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

历史

项目历史与用法

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.

时间线

  • 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.

来源

  • 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

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

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>

可执行文件

已安装的可执行文件

命令类型暴露范围备注
masqreqcli全局可执行文件
p11catcli全局可执行文件
p11cpcli全局可执行文件
p11importcertcli全局可执行文件
p11importdatacli全局可执行文件
p11importpubkcli全局可执行文件
p11initcli全局可执行文件
p11kcvcli全局可执行文件
p11keycompcli全局可执行文件
p11keygencli全局可执行文件
p11lscli全局可执行文件
p11mkcertcli全局可执行文件
p11morecli全局可执行文件
p11mvcli全局可执行文件
p11odcli全局可执行文件
p11reqcli全局可执行文件
p11rewrapcli全局可执行文件
p11rmcli全局可执行文件
p11setattrcli全局可执行文件
p11slotinfocli全局可执行文件
p11unwrapcli全局可执行文件
p11wrapcli全局可执行文件
with_awscli全局可执行文件
with_beidcli全局可执行文件
with_kryopticcli全局可执行文件
with_lunacli全局可执行文件
with_nfastcli全局可执行文件
with_nsscli全局可执行文件
with_pkcs11_commoncli全局可执行文件
with_softhsmcli全局可执行文件
with_utimacocli全局可执行文件
with_yubicocli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-09-19
管理器版本3.1.0
管理器更新时间2026-09-11
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
依赖openssl@3
构建依赖pkgconf
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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