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

Posted andypeker

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了GnuPG高级指导上传/导出分发公钥相关的知识,希望对你有一定的参考价值。

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) <[email protected]>

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:~ #

 

[email protected]:~# 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) <[email protected]>" imported

gpg: Total number processed: 1

gpg:               imported: 1  (RSA: 1)

[email protected]:~# gpg -k

/root/.gnupg/pubring.gpg

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

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

uid                  FranklinYang (Encrypt RSA 4096) <[email protected]>

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

 

[email protected]:~#

 

 

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) <[email protected]>

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高级指导上传/导出分发公钥的主要内容,如果未能解决你的问题,请参考以下文章

GnuPG高级指导加密分发我的私钥

GnuPG高级指导GnuPG的用法

GnuPG高级指导在其他电脑上启用“我的密钥”

GnuPG

CDN高级技术专家周哲: 深度剖析短视频分发过程中的用户体验优化技术点

CDN高级技术专家周哲:深度剖析短视频分发过程中的用户体验优化技术点