GitHub 以及其他 GIT 平台中启用 GPG2 认证基本使用流程(MacOS),增强身份识别和安全性

GitHub 以及其他 GIT 平台中启用 GPG2 认证基本使用流程(MacOS),增强身份识别和安全性

base gnupg(version >= 2.1.17,版本 gnupg 已包含 gpg-agent)

注意事项:gpg2 默认交互式输入密码,有相应的解决方案。

brew install(推荐):
1
brew install gnupg
版本信息(截至 2022.06.19)
1
2
3
4
5
6
7
gnupg: stable 2.3.6 (bottled)
GNU Pretty Good Privacy (PGP) package
https://gnupg.org/
/usr/local/Cellar/gnupg/2.3.6 (149 files, 13.3MB) *
Poured from bottle on 2022-05-04 at 00:14:15
From: https://mirrors.ustc.edu.cn/homebrew-core.git/Formula/gnupg.rb
License: GPL-3.0-or-later
Read more