使用过程中不是很顺利, 是不是因为编译安装产生的问题, 不过还是想记录一下, 作为备忘录
Prepare
源码包 | 版本 | 链接 |
---|---|---|
GnuPG | 2.2.9 | http://www.ring.gr.jp/pub/net/gnupg/gnupg/ |
Libgpg-error | 1.32 | http://www.ring.gr.jp/pub/net/gnupg/libgpg-error/ |
Libgcrypt | 1.8.3 | http://www.ring.gr.jp/pub/net/gnupg/libgcrypt/ |
Libksba | 1.3.5 | http://www.ring.gr.jp/pub/net/gnupg/libksba/ |
Libassuan | 2.5.1 | http://www.ring.gr.jp/pub/net/gnupg/libassuan/ |
ntbTLS | 0.1.2 | http://www.ring.gr.jp/pub/net/gnupg/ntbtls/ |
nPth | 1.6 | http://www.ring.gr.jp/pub/net/gnupg/npth/ |
Pinentry | 1.1.0 | http://www.ring.gr.jp/pub/net/gnupg/pinentry/ |
构建安装
pkgs=(
"libgpg-error-1.32.tar.gz"
"libgcrypt-1.8.3.tar.gz"
"libassuan-2.5.1.tar.bz2"
"libksba-1.3.5.tar.bz2"
"npth-1.6.tar.bz2"
"gnupg-2.2.10.tar.bz2"
"gettext-0.19.8.1.tar.xz"
"pinentry-1.1.0.tar.bz2"
"ntbtls-0.1.2.tar.bz2"
);
urls=(
"https://gnupg.org/ftp/gcrypt/libgpg-error/${pkgs[1]}"
"https://gnupg.org/ftp/gcrypt/libgcrypt/${pkgs[2]}"
"https://gnupg.org/ftp/gcrypt/libassuan/${pkgs[3]}"
"https://gnupg.org/ftp/gcrypt/libksba/${pkgs[4]}"
"https://gnupg.org/ftp/gcrypt/npth/${pkgs[5]}"
"https://gnupg.org/ftp/gcrypt/gnupg/${pkgs[6]}"
"https://ftp.gnu.org/pub/gnu/gettext/${pkgs[7]}"
"https://gnupg.org/ftp/gcrypt/pinentry/${pkgs[8]}"
"https://gnupg.org/ftp/gcrypt/ntbtls/${pkgs[9]}"
);
for pkg in ${urls[@]}; do
curl -OL ${pkg}
done;
for pkg in ${pkgs[@]}; do
if [[ -f ${pkg} ]]; then
if [[ 'gz' == ${pkg##*.} ]]; then
tar -zxf ${pkg}
elif [[ 'bz2' == ${pkg##*.} ]]; then
tar -jxf ${pkg}
elif [[ 'xz' == ${pkg##*.} ]]; then
tar -Jxf ${pkg}
fi
fi
done;
常用Command
# 生成key
gpg --full-gen-key
gpgconf --kill gpg-agent && gpg-agent --use-standard-socket --pinentry-program ${LOCAL}/pinentry/bin/pinentry --daemon
gpg --list-secret-keys --keyid-format SHORT
gpg --list-secret-keys --keyid-format LONG
gpg -vvv --debug-all --keyserver keyserver.opensuse.org --send-keys KEY-IDS
gpg -v --keyserver keyserver.ubuntu.com --send-keys KEY-IDS
# 导出公钥
gpg --export -a KEY-ID > KEY-ID.key
Share
我这边一直不能 send key 操作原因? 安装原因? 未探究…
因为不能通过 gpg --send-keys
所以手工在页面中 submit
😑
用了opensuse的keyserver submit http://keyserver.opensuse.org/
这是我提交成功的公钥:
http://keyserver.opensuse.org/pks/lookup?search=0x0A35CCA4&fingerprint=on&hash=on&op=vindex
http://keyserver.ubuntu.com/pks/lookup?search=0x0A35CCA4&fingerprint=on&hash=on&op=get