OpenPGP 卡

出自 ArchWiki

OpenPGP 卡 描述了一个在硬件安全设备上运行的应用程序的开放标准。 存在开源和闭源实现。

使用 OpenPGP 卡设备(与所有硬件安全设备一样)的动机是不将私钥材料暴露给主机。

使用 OpenPGP 卡,可以覆盖所有 OpenPGP 私钥操作:解密和签名。

安装

OpenPGP 卡设备可以与 pcscliteccid 驱动程序一起使用,也可以与包含其自己的自定义 CCID 驱动程序的 gnupg 一起使用。

注意: GnuPG 可以选择 使用标准 pcsclite 智能卡中间件 来访问 OpenPGP 卡设备。

密钥槽

OpenPGP 卡设备为私钥材料提供三个专用插槽,每个插槽分别用于签名、解密和身份验证。

注意: 一些 YubiKey 设备提供了 OpenPGP 卡标准的专有扩展,增加了一个名为 证明 的第四个专用密钥槽。

Ssh-agent

在身份验证槽中使用私钥材料,SSH 登录可以通过可以使用 OpenPGP 卡设备的 ssh-agent 实现来执行。 可用选项包括 GnuPG 作为 ssh-agentopenpgp-card-ssh-agent

更多用例

OpenPGP 卡设备可以在广泛的上下文中使用,以执行用于签名和解密的 OpenPGP 操作。 典型用途包括 使用 git 签署提交 和在集成 Thunderbird 与 OpenPGP 卡 或使用 pass 管理密码时进行 静态数据加密

参见