GPG签名提交Gitea

为什么要使用GPG签名

Git提交的用户名和邮箱通过是通过git config自己设置的,Git 并不去验证用户名和邮箱,一般都会设置成自己的用户名和邮箱,但也存在随意设置的情况。这就意味着,任何人都可以以你的名义进行提交。那么如何确保你的提交的可信度,证明它来自真正的你,而不是别人呢?
我们可以使用GPG签名你的提交。

Gitea如何开启

设置 > SSH/GPG 密钥 >管理 GPG 密钥,添加GPG公钥即可。如何创建GPG不再赘述。
继续阅读“GPG签名提交Gitea”

Gitea开启安全两步验证

开启路径

设置>安全>两步验证

点击 “启用两步验证”,使用支持 TOTP(基于时间的一次性密码)的应用(如 Google Authenticator 或 Authenticator)扫描生成的二维码。 输入应用生成的验证码完成绑定。

注意:开启两步验证后,原密码不能push代码,需要设置Access Token

生成Access Token

设置>应用>管理access token

权限选择write:repository,生成令牌。

Letencrypt泛域名自动续期

一、下载

$ git clone https://github.com/ywdblog/certbot-letencrypt-wildcardcertificates-alydns-au
$ cd certbot-letencrypt-wildcardcertificates-alydns-au
$ chmod 0777 au.sh

二、使用方法

2.1 申请证书

2.1.1 测试是否有错误

certbot certonly  -d *.abc.com -d abc.com  --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory   --manual-auth-hook "/path/certbot-alydns/au.sh python aly add" --manual-cleanup-hook "/path/certbot-alydns/au.sh python aly clean"   --dry-run 

Debug: 操作 DNS API 可能会遇到一系列问题,比如 API token 权限不足,遇到相关问题,可以查看 /var/log/certd.log。

继续阅读“Letencrypt泛域名自动续期”

OpenKeyChain使用教程

OpenKeychain helps you communicate more privately and securely. It uses encryption to ensure that your messages can be read only by the people you send them to, others can send you messages that only you can read, and these messages can be digitally signed so the people getting them are sure who sent them. OpenKeychain is based on the well established OpenPGP standard making encryption compatible across your devices and systems. For a list of compatible software for Windows, Mac OS, and other operating systems consult openpgp.org/software/.

1. 安装

下载地址

继续阅读“OpenKeyChain使用教程”