新闻详情

新闻详情

首页 / 资讯中心 / 详情

如何在5分钟内配置pinentry-touchid:macOS用户的终极GPG Touch ID指南

发布时间:2026/11/9 20:04:54来源:尧图网络
如何在5分钟内配置pinentry-touchid:macOS用户的终极GPG Touch ID指南
如何在5分钟内配置pinentry-touchidmacOS用户的终极GPG Touch ID指南【免费下载链接】pinentry-touchidCustom GPG pinentry program for macOS that allows using Touch ID for fetching the password from the macOS keychain.项目地址: https://gitcode.com/gh_mirrors/pi/pinentry-touchidpinentry-touchid是一款专为macOS用户设计的自定义GPG pinentry程序它允许用户通过Touch ID从macOS钥匙串中获取密码为GPG操作带来更便捷、更安全的身份验证体验。了解pinentry-touchid的工作原理 pinentry-touchid与gpg-agent协同工作通过以下规则提供密码当钥匙串中找不到给定密钥的密码条目时程序会回退到pinentry-mac程序获取密码。建议在对话框中取消勾选“Save in keychain”选项防止pinentry-mac存储密码。若找到密码条目用户将看到Touch ID对话框成功验证后存储在钥匙串中的密码将返回给gpg-agent。若找到密码条目但在Touch ID成功验证后该条目不属于pinentry-touchid程序则会显示普通密码对话框。在此对话框中输入密码后点击“Always allow”将允许pinentry-touchid无需额外输入密码即可访问密码条目但密码访问仍受Touch ID保护。快速安装pinentry-touchid的步骤 ⚡安装前的准备工作在安装pinentry-touchid之前需要确保系统已安装以下组件gnupgpinentry-mac如果已经安装了GPG可通过运行以下命令确认执行pinentry时是否显示GUI提示$ echo GETPIN | pinentry若未看到来自pinentry-mac的对话框可通过Homebrew安装$ brew install pinentry-mac然后将pinentry别名指向pinentry-mac$ alias pinentrypinentry-mac若别名设置不足以使gpgconf返回正确路径可执行以下命令自动修复符号链接$ pinentry-touchid -fix通过Homebrew安装推荐作为发布流程的一部分项目提供了更新的Homebrew Formula。执行以下命令使用Homebrew安装pinentry-touchid$ brew tap jorgelbg/tap $ brew install pinentry-touchidHomebrew会显示后续步骤类似如下内容 Caveats ➡️ Ensure that pinentry-mac is the default pinentry program: /usr/local/bin/pinentry-touchid -fix ✅ Add the following line to your ~/.gnupg/gpg-agent.conf file: pinentry-program /usr/local/opt/pinentry-touchid/bin/pinentry-touchid Then reload your gpg-agent: gpg-connect-agent reloadagent /bye Run the following command to disable Save in Keychain in pinentry-mac: defaults write org.gpgtools.common DisableKeychain -bool yes ⛔️ If you are upgrading from a previous version, you will be asked to give access again to the keychain entry. Click Always Allow after the Touch ID verification to prevent this dialog from showing. Summary /usr/local/Cellar/pinentry-touchid/0.0.2: 4 files, 2.2MB, built in 10 seconds手动安装方法从项目的Releases页面下载pinentry-touchid二进制文件。配置gpg-agent使用pinentry-touchid作为pinentry程序。在~/.gnupg/gpg-agent.conf中添加或替换以下行$ pinentry-program /usr/local/bin/pinentry-touchid可将/usr/local/bin/pinentry-touchid替换为二进制文件的实际存储路径。确保pinentry-mac被配置为默认的pinentry程序作为回退。可通过执行以下命令检查默认将使用哪个PIN程序$ pinentry-touchid -check若报告任何错误pinentry-touchid可自动为你修复符号链接$ pinentry-touchid -fix手动将GPG密钥密码添加到钥匙串 首先确保pinentry-mac已在使用钥匙串$ security find-generic-password -s GnuPG若得到一长串属性列表则说明pinentry-mac已配置使用钥匙串。若出现类似以下错误则表示pinentry-mac未配置使用钥匙串security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.配置pinentry-mac在配置pinentry-touchid之前应至少配置pinentry-mac使用钥匙串一次$ defaults write org.gpgtools.common UseKeychain -bool yes确保~/.gnupg/gpg-agent.conf中的pinentry-program条目指向pinentry-mac然后重启GPG Agent$ gpgconf --kill gpg-agent使用gpg时pinentry-mac应会提供GUI提示输入GPG密码$ echo 1234 | gpg -as -确保勾选提示上的“Save in Keychain”框。之后可能会再次提示输入登录密码授权pinentry-mac创建和使用钥匙串条目存储GPG密码。如有此提示选择“Always Allow”以避免未来再次提示。现在应能通过之前的命令看到新的钥匙串条目$ security find-generic-password -s GnuPG配置pinentry-touchid一旦钥匙串配置正确可更新gpg-agent.conf将pinentry-program的正确路径指向pinentry-touchid的完整路径。每次更改此配置文件后记得重启GPG Agent$ gpgconf --kill gpg-agent建议使用以下命令为默认的pinentry-mac程序禁用在macOS钥匙串中存储密码的选项$ defaults write org.gpgtools.common DisableKeychain -bool yes这将允许pinentry-touchid创建并自动获取钥匙串中条目的所有权。如果钥匙串中已存在条目需要始终允许pinentry-touchid访问现有条目。注意事项 ⚠️pinentry-touchid项目不会将密码/pin存储在设备的安全飞地中而是使用来自pinentry-mac如果可用的普通钥匙串条目或创建新的条目。经过测试的设备和系统版本 pinentry-touchid已在以下设备和macOS版本组合上进行了测试MacBook Pro (15-inch, 2018), macOS Catalina - 10.15.7MacBook Pro (15-inch, 2018), macOS Big Sur - 11.4, 11.5.0, 11.5.1MacBook Pro (16-inch, Late 2019), macOS Big Sur - 11.4, 11.5.1MacBook Pro (16-inch, Late 2021), macOS Monterey - 12.2【免费下载链接】pinentry-touchidCustom GPG pinentry program for macOS that allows using Touch ID for fetching the password from the macOS keychain.项目地址: https://gitcode.com/gh_mirrors/pi/pinentry-touchid创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
网站建设高端定制企业官网
RELATED

相关资讯

更多精彩内容,欢迎继续阅读

较早相关资讯

最新相关资讯

【外设】之大彩串口显示屏 2026/11/10 4:49:37

【外设】之大彩串口显示屏

大彩串口屏初步使用 1 .官网下载 STM32 屏幕 GUI 设计资料 http://www.gz-dc.com/category/typeid/4112 找到 STM32 Keil 工程,移植相关代码因项目而异进行移植,由于项目简单,本人只对用到的指令接口进行修改。 比如:注意事项&…

阅读更多 →
无法下载Windows系统iso文件 2026/11/9 8:37:19

无法下载Windows系统iso文件

当我遇到这个问题的时候,我打开了一个网站: 登录 然后我打算下载的时候: 突然那个官方的连接就可以下载了:

阅读更多 →
【清华代码熊】DeepSeek V4.1 Flash 后训练详解 2026/11/10 9:14:31

【清华代码熊】DeepSeek V4.1 Flash 后训练详解

📌 上期解析了 DeepSeek V4.1 Flash 模型架构改进,本期解析 DeepSeek V4.1 Flash 预训练/后训练技术: 🌟 预训练:45T 文本 多模态混合语料、直接训练 sparse attention(取消 DeepSeek V4 的 dense 冷启动&…

阅读更多 →
Shuffle-R1: Efficient RL framework for Multimodal Large Language Models via Data-centric Dynamic ... 2026/11/10 1:10:29

Shuffle-R1: Efficient RL framework for Multimodal Large Language Models via Data-centric Dynamic ...

文章主要内容和创新点 主要内容 本文聚焦于多模态大语言模型(MLLM)强化学习(RL)训练中的效率问题,提出了一个名为Shuffle-R1的框架。研究发现,当前RL训练存在两个关键缺陷: 优势值坍缩(Advantage Collapsing):批次中大多数优势值集中在零附近,导致有效梯度信号被淹…

阅读更多 →
PRvL: Quantifying the Capabilities and Risks of Large Language Models for PII Redaction 2026/11/9 8:37:18

PRvL: Quantifying the Capabilities and Risks of Large Language Models for PII Redaction

一、文章主要内容总结 本文聚焦于利用大型语言模型(LLMs)实现个人身份信息(PII)脱敏的研究,旨在解决传统脱敏方法(如基于规则的系统、领域特定命名实体识别(NER)模型)泛化能力差、跨格式/跨语境适应性弱的问题。 研究通过全面评估多种LLM架构(包括密集型LLM(D-LLM…

阅读更多 →
LLaVA-RE: Binary Image-Text Relevancy Evaluation with Multimodal Large Language Model 2026/11/9 8:37:18

LLaVA-RE: Binary Image-Text Relevancy Evaluation with Multimodal Large Language Model

文章主要内容和创新点 主要内容 本文聚焦于二进制图像-文本相关性评估任务(判断图像与文本“相关”或“不相关”),针对该任务中文本格式多样、相关性定义随场景变化等挑战,提出了基于多模态大语言模型(MLLM)的解决方案LLaVA-RE。 模型设计:LLaVA-RE基于LLaVA 1.5架构,…

阅读更多 →

今日资讯

本周资讯

本月资讯

看完文章仍有疑问?

联系尧图顾问,获取一对一建站咨询

立即免费咨询 📞 400-888-8888
📞 ✉