Linux OS Class [20170714x1] gpg tool for email

[mary@server0 ~]$ gpg --list-key  /home/mary/.gnupg/pubring.gpg  -----------------------------  pub   2048R/A7A10163 2017-07-12 [expires: 2017-07-26]  uid                  mary chen (test) <mary@server0.example.com>  sub   2048R/BB2419B5 2017-07-12 [expires: 2017-07-26]    [mary@server0 ~]$ gpg --output revoke.asc --gen-revoke A7A10163    sec  2048R/A7A10163 2017-07-12 mary chen (test) <mary@server0.example.com>    Create a revocation certificate for this key? (y/N) y  Please select the reason for the revocation:    0 = No reason specified    1 = Key has been compromised    2 = Key is superseded    3 = Key is no longer used    Q = Cancel  (Probably you want to select 1 here)  Your decision? 3  Enter an optional description; end it with an empty line:  > llll  >   Reason for revocation: Key is no longer used  llll  Is this okay? (y/N) y    You need a passphrase to unlock the secret key for  user: "mary chen (test) <mary@server0.example.com>"  2048-bit RSA key, ID A7A10163, created 2017-07-12    gpg: cancelled by user  [mary@server0 ~]$ ll /srv/share  total 0  drwxrwxr-x. 2 mary mary 6 Jul 12 20:31 aaa  -rw-rw-r--. 1 mary mary 0 Jul 12 20:31 bbbg  drwxr-xr-x. 2 root root 6 Jul 12 20:31 eee  -rw-r--r--. 1 root root 0 Jul 12 20:33 ttt  [mary@server0 ~]$ gpg --list-key  /home/mary/.gnupg/pubring.gpg  -----------------------------  pub   2048R/A7A10163 2017-07-12 [expires: 2017-07-26]  uid                  mary chen (test) <mary@server0.example.com>  sub   2048R/BB2419B5 2017-07-12 [expires: 2017-07-26]    [mary@server0 ~]$ gpg --armor --output mary.asc --export A7A10163  [mary@server0 ~]$ ll  total 8  drwxr-xr-x. 2 mary mary    6 Jul 12 21:36 Desktop  drwxr-xr-x. 2 mary mary    6 Jul 12 21:36 Documents  drwxr-xr-x. 2 mary mary    6 Jul 12 21:36 Downloads  -rw-rw-r--. 1 mary mary 1752 Jul 14 19:58 mary.asc  drwxr-xr-x. 2 mary mary    6 Jul 12 21:36 Music  drwxr-xr-x. 2 mary mary    6 Jul 12 21:36 Pictures  drwxr-xr-x. 2 mary mary    6 Jul 12 21:36 Public  -rw-rw-r--. 1 mary mary 1395 Jul 12 20:10 secret  drwxr-xr-x. 2 mary mary    6 Jul 12 21:36 Templates  drwxr-xr-x. 2 mary mary    6 Jul 12 21:36 Videos  [mary@server0 ~]$ gpg --armor --output mary-e.asc --export mary@server0.example.com  [mary@server0 ~]$ ll  total 12  drwxr-xr-x. 2 mary mary    6 Jul 12 21:36 Desktop  drwxr-xr-x. 2 mary mary    6 Jul 12 21:36 Documents  drwxr-xr-x. 2 mary mary    6 Jul 12 21:36 Downloads  -rw-rw-r--. 1 mary mary 1752 Jul 14 19:58 mary.asc  -rw-rw-r--. 1 mary mary 1752 Jul 14 19:58 mary-e.asc  drwxr-xr-x. 2 mary mary    6 Jul 12 21:36 Music  drwxr-xr-x. 2 mary mary    6 Jul 12 21:36 Pictures  drwxr-xr-x. 2 mary mary    6 Jul 12 21:36 Public  -rw-rw-r--. 1 mary mary 1395 Jul 12 20:10 secret  drwxr-xr-x. 2 mary mary    6 Jul 12 21:36 Templates  drwxr-xr-x. 2 mary mary    6 Jul 12 21:36 Videos  [mary@server0 ~]$ sum mary.asc mary-e.asc   56675     2 mary.asc  56675     2 mary-e.asc  [mary@server0 ~]$ md5sum mary.asc mary-e.asc   cda3c936185ec3281f7a995acee57f12  mary.asc  cda3c936185ec3281f7a995acee57f12  mary-e.asc  [mary@server0 ~]$ cp mary.asc /srv/share    [mary@server0 ~]$ cp  /srv/share/jerry.asc .  [mary@server0 ~]$ gpg --import jerry.asc   gpg: key 3316DD2A: public key "Jerry Lin (jerry the king) <jerry@server0.example.com>" imported  gpg: Total number processed: 1  gpg:               imported: 1  (RSA: 1)  [mary@server0 ~]$ gpg --list-key  /home/mary/.gnupg/pubring.gpg  -----------------------------  pub   2048R/A7A10163 2017-07-12 [expires: 2017-07-26]  uid                  mary chen (test) <mary@server0.example.com>  sub   2048R/BB2419B5 2017-07-12 [expires: 2017-07-26]    pub   1024R/3316DD2A 2017-07-14 [expires: 2017-07-28]  uid                  Jerry Lin (jerry the king) <jerry@server0.example.com>  sub   1024R/B3721874 2017-07-14 [expires: 2017-07-28]    


[kiosk@foundation0 ~]$ ssh root@172.25.X.11  Last login: Wed Jul 12 21:34:44 2017  [root@server0 ~]# yum search thunderbird  Loaded plugins: langpacks  ============================= Matched: thunderbird =============================  xulrunner.i686 : XUL Runtime for Gecko Applications  xulrunner.x86_64 : XUL Runtime for Gecko Applications  [root@server0 ~]# yum-config-manager --add-repo=http://mirror01.idc.hinet.net/CentOS/7.3.1611/os/x86_64/  Loaded plugins: langpacks  adding repo from: http://mirror01.idc.hinet.net/CentOS/7.3.1611/os/x86_64/    [mirror01.idc.hinet.net_CentOS_7.3.1611_os_x86_64_]  name=added from: http://mirror01.idc.hinet.net/CentOS/7.3.1611/os/x86_64/  baseurl=http://mirror01.idc.hinet.net/CentOS/7.3.1611/os/x86_64/  enabled=1      [root@server0 ~]# rpm --import http://mirror01.idc.hinet.net/CentOS/7.3.1611/os/x86_64/RPM-GPG-KEY-CentOS-7  [root@server0 ~]# yum search thunderbird  Loaded plugins: langpacks  mirror01.idc.hinet.net_CentOS_7.3.1611_os_x86_64_                                            | 3.6 kB  00:00:00       rhel_dvd                                                                                     | 4.1 kB  00:00:00       (1/2): mirror01.idc.hinet.net_CentOS_7.3.1611_os_x86_64_/group_gz                            | 155 kB  00:00:00       (2/2): mirror01.idc.hinet.net_CentOS_7.3.1611_os_x86_64_/primary_db                          | 5.6 MB  00:00:00       ============================================= N/S matched: thunderbird =============================================  thunderbird.x86_64 : Mozilla Thunderbird mail/newsgroup client      Name and summary matches only, use "search all" for everything.  [root@server0 ~]# yum install thunderbird  Loaded plugins: langpacks  Resolving Dependencies  --> Running transaction check  ---> Package thunderbird.x86_64 0:45.4.0-1.el7.centos will be installed  --> Processing Dependency: nss >= 3.21.0 for package: thunderbird-45.4.0-1.el7.centos.x86_64  --> Processing Dependency: nspr >= 4.11.0 for package: thunderbird-45.4.0-1.el7.centos.x86_64  --> Running transaction check  ---> Package nspr.x86_64 0:4.10.2-4.el7 will be updated  ---> Package nspr.x86_64 0:4.11.0-1.el7_2 will be an update  ---> Package nss.x86_64 0:3.15.4-6.el7 will be updated  --> Processing Dependency: nss = 3.15.4-6.el7 for package: nss-sysinit-3.15.4-6.el7.x86_64  --> Processing Dependency: nss(x86-64) = 3.15.4-6.el7 for package: nss-tools-3.15.4-6.el7.x86_64  ---> Package nss.x86_64 0:3.21.0-17.el7 will be an update  --> Processing Dependency: nss-util >= 3.21.0-2.2 for package: nss-3.21.0-17.el7.x86_64  --> Processing Dependency: nss-softokn(x86-64) >= 3.16.2.3-14.2 for package: nss-3.21.0-17.el7.x86_64  --> Processing Dependency: libnssutil3.so(NSSUTIL_3.21)(64bit) for package: nss-3.21.0-17.el7.x86_64  --> Processing Dependency: libnssutil3.so(NSSUTIL_3.17.1)(64bit) for package: nss-3.21.0-17.el7.x86_64  --> Running transaction check  ---> Package nss-softokn.x86_64 0:3.15.4-2.el7 will be updated  ---> Package nss-softokn.x86_64 0:3.16.2.3-14.4.el7 will be an update  --> Processing Dependency: nss-softokn-freebl(x86-64) >= 3.16.2.3-14.4.el7 for package: nss-softokn-3.16.2.3-14.4.el7.x86_64  ---> Package nss-sysinit.x86_64 0:3.15.4-6.el7 will be updated  ---> Package nss-sysinit.x86_64 0:3.21.0-17.el7 will be an update  ---> Package nss-tools.x86_64 0:3.15.4-6.el7 will be updated  ---> Package nss-tools.x86_64 0:3.21.0-17.el7 will be an update  ---> Package nss-util.x86_64 0:3.15.4-2.el7 will be updated  ---> Package nss-util.x86_64 0:3.21.0-2.2.el7_2 will be an update  --> Running transaction check  ---> Package nss-softokn-freebl.x86_64 0:3.15.4-2.el7 will be updated  ---> Package nss-softokn-freebl.x86_64 0:3.16.2.3-14.4.el7 will be an update  --> Finished Dependency Resolution    Dependencies Resolved    ====================================================================================================================   Package               Arch      Version                 Repository                                            Size  ====================================================================================================================  Installing:   thunderbird           x86_64    45.4.0-1.el7.centos     mirror01.idc.hinet.net_CentOS_7.3.1611_os_x86_64_     64 M  Updating for dependencies:   nspr                  x86_64    4.11.0-1.el7_2          mirror01.idc.hinet.net_CentOS_7.3.1611_os_x86_64_    126 k   nss                   x86_64    3.21.0-17.el7           mirror01.idc.hinet.net_CentOS_7.3.1611_os_x86_64_    851 k   nss-softokn           x86_64    3.16.2.3-14.4.el7       mirror01.idc.hinet.net_CentOS_7.3.1611_os_x86_64_    306 k   nss-softokn-freebl    x86_64    3.16.2.3-14.4.el7       mirror01.idc.hinet.net_CentOS_7.3.1611_os_x86_64_    204 k   nss-sysinit           x86_64    3.21.0-17.el7           mirror01.idc.hinet.net_CentOS_7.3.1611_os_x86_64_     56 k   nss-tools             x86_64    3.21.0-17.el7           mirror01.idc.hinet.net_CentOS_7.3.1611_os_x86_64_    488 k   nss-util              x86_64    3.21.0-2.2.el7_2        mirror01.idc.hinet.net_CentOS_7.3.1611_os_x86_64_     72 k    Transaction Summary  ====================================================================================================================  Install  1 Package  Upgrade             ( 7 Dependent packages)    Total download size: 66 M  Is this ok [y/d/N]: y  Downloading packages:  No Presto metadata available for mirror01.idc.hinet.net_CentOS_7.3.1611_os_x86_64_  (1/8): nspr-4.11.0-1.el7_2.x86_64.rpm                                                        | 126 kB  00:00:00       (2/8): nss-softokn-3.16.2.3-14.4.el7.x86_64.rpm                                              | 306 kB  00:00:00       (3/8): nss-softokn-freebl-3.16.2.3-14.4.el7.x86_64.rpm                                       | 204 kB  00:00:00       (4/8): nss-3.21.0-17.el7.x86_64.rpm                                                          | 851 kB  00:00:00       (5/8): nss-sysinit-3.21.0-17.el7.x86_64.rpm                                                  |  56 kB  00:00:00       (6/8): nss-util-3.21.0-2.2.el7_2.x86_64.rpm                                                  |  72 kB  00:00:00       (7/8): nss-tools-3.21.0-17.el7.x86_64.rpm                                                    | 488 kB  00:00:00       (8/8): thunderbird-45.4.0-1.el7.centos.x86_64.rpm                                            |  64 MB  00:00:06       --------------------------------------------------------------------------------------------------------------------  Total                                                                               9.4 MB/s |  66 MB  00:00:07       Running transaction check  Running transaction test  Transaction test succeeded  Running transaction    Updating   : nspr-4.11.0-1.el7_2.x86_64                                                                      1/15     Updating   : nss-util-3.21.0-2.2.el7_2.x86_64                                                                2/15     Updating   : nss-softokn-freebl-3.16.2.3-14.4.el7.x86_64                                                     3/15     Updating   : nss-softokn-3.16.2.3-14.4.el7.x86_64                                                            4/15     Updating   : nss-sysinit-3.21.0-17.el7.x86_64                                                                5/15     Updating   : nss-3.21.0-17.el7.x86_64                                                                        6/15     Updating   : nss-tools-3.21.0-17.el7.x86_64                                                                  7/15     Installing : thunderbird-45.4.0-1.el7.centos.x86_64                                                          8/15     Cleanup    : nss-tools-3.15.4-6.el7.x86_64                                                                   9/15     Cleanup    : nss-sysinit-3.15.4-6.el7.x86_64                                                                10/15     Cleanup    : nss-3.15.4-6.el7.x86_64                                                                        11/15     Cleanup    : nss-softokn-3.15.4-2.el7.x86_64                                                                12/15     Cleanup    : nss-util-3.15.4-2.el7.x86_64                                                                   13/15     Cleanup    : nspr-4.10.2-4.el7.x86_64                                                                       14/15     Cleanup    : nss-softokn-freebl-3.15.4-2.el7.x86_64                                                         15/15     Verifying  : nss-tools-3.21.0-17.el7.x86_64                                                                  1/15     Verifying  : thunderbird-45.4.0-1.el7.centos.x86_64                                                          2/15     Verifying  : nss-3.21.0-17.el7.x86_64                                                                        3/15     Verifying  : nss-util-3.21.0-2.2.el7_2.x86_64                                                                4/15     Verifying  : nss-softokn-3.16.2.3-14.4.el7.x86_64                                                            5/15     Verifying  : nss-softokn-freebl-3.16.2.3-14.4.el7.x86_64                                                     6/15     Verifying  : nspr-4.11.0-1.el7_2.x86_64                                                                      7/15     Verifying  : nss-sysinit-3.21.0-17.el7.x86_64                                                                8/15     Verifying  : nss-tools-3.15.4-6.el7.x86_64                                                                   9/15     Verifying  : nss-softokn-freebl-3.15.4-2.el7.x86_64                                                         10/15     Verifying  : nss-softokn-3.15.4-2.el7.x86_64                                                                11/15     Verifying  : nss-3.15.4-6.el7.x86_64                                                                        12/15     Verifying  : nss-util-3.15.4-2.el7.x86_64                                                                   13/15     Verifying  : nspr-4.10.2-4.el7.x86_64                                                                       14/15     Verifying  : nss-sysinit-3.15.4-6.el7.x86_64                                                                15/15     Installed:    thunderbird.x86_64 0:45.4.0-1.el7.centos                                                                              Dependency Updated:    nspr.x86_64 0:4.11.0-1.el7_2                          nss.x86_64 0:3.21.0-17.el7                                      nss-softokn.x86_64 0:3.16.2.3-14.4.el7                nss-softokn-freebl.x86_64 0:3.16.2.3-14.4.el7                   nss-sysinit.x86_64 0:3.21.0-17.el7                    nss-tools.x86_64 0:3.21.0-17.el7                                nss-util.x86_64 0:3.21.0-2.2.el7_2                       Complete!    

留言

這個網誌中的熱門文章

Virtual Machine 中進行開發專案優點 => VM & Docker

Why not Python?

Linux OS Class [20170710] vmare new and resize command demo