码迷,mamicode.com
首页 > Web开发 > 详细

GnuPG高级指导(2)上传/导出分发公钥

时间:2016-11-29 06:26:46      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:mat   ultimate   ted   port   高级   sub   exp   export   分发   

1 上传到keyserver

 

opensuse13:~ # gpg -k

/root/.gnupg/pubring.gpg

------------------------

pub   4096R/276856F7 2016-11-25 [expires: 2017-04-24]

uid       [ultimate] FranklinYang (Encrypt RSA 4096) <andypeker@163.com>

sub   4096R/0A09DAC9 2016-11-25 [expires: 2017-04-24]

 

opensuse13:~ #

opensuse13:~ #

opensuse13:~ #

opensuse13:~ # gpg --keyserver hkp://keys.gnupg.net --send-keys 276856F7

gpg: sending key 276856F7 to hkp server keys.gnupg.net

opensuse13:~ #

 

root@debian8:~# gpg --keyserver hkp://keys.gnupg.net --recv-keys 276856F7

gpg: requesting key 276856F7 from hkp server keys.gnupg.net

gpg: key 276856F7: public key "FranklinYang (Encrypt RSA 4096) <andypeker@163.com>" imported

gpg: Total number processed: 1

gpg:               imported: 1  (RSA: 1)

root@debian8:~# gpg -k

/root/.gnupg/pubring.gpg

------------------------

pub   4096R/276856F7 2016-11-25 [expires: 2017-04-24]

uid                  FranklinYang (Encrypt RSA 4096) <andypeker@163.com>

sub   4096R/0A09DAC9 2016-11-25 [expires: 2017-04-24]

 

root@debian8:~#

 

 

2 导出后通过其他方式分发(百度云、www、mail等随意)

opensuse13:~ # gpg -k

/root/.gnupg/pubring.gpg

------------------------

pub   4096R/276856F7 2016-11-25 [expires: 2017-04-24]

uid       [ultimate] FranklinYang (Encrypt RSA 4096) <andypeker@163.com>

sub   4096R/0A09DAC9 2016-11-25 [expires: 2017-04-24]

 

opensuse13:~ # gpg -a -o FranklinYang.rsa.pub.key --export 276856F7

opensuse13:~ #

opensuse13:~ # l FranklinYang.rsa.pub.key

-rw-r--r-- 1 root root 3132 Nov 25 21:21 FranklinYang.rsa.pub.key

opensuse13:~ #

GnuPG高级指导(2)上传/导出分发公钥

标签:mat   ultimate   ted   port   高级   sub   exp   export   分发   

原文地址:http://www.cnblogs.com/andypeker/p/6111885.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!