gpg --gen-key //生成的文件在/home/itlanger/.gnugp下
gpg --list-key
/home/itlanger/.gnupg/pubring.gpg
---------------------------------
pub 2048R/4A07CE73 2011-04-13
uid itlanger
cat .rpmmacros
%_topdir /home/itlanger/rpm
%_signature gpg
%_gpgbin /usr/bin/gpg
%_gpg_name itlanger
%_gpg_path /home/itlanger/.gnupg
gpg --export -a 'itlanger ' > mysign.asc //导出文本文件的签名
rpm --import mysign.asc
rpm --addsign /home/itlanger/rpm/RPMS/x86_64/test.rpm
rpm --checksig /home/itlanger/rpm/RPMS/x86_64/test.rpm 验证签名
阅读(1569) | 评论(0) | 转发(0) |