[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]
[mary@server0 ~]$ ll -a
total 24
drwx------. 5 mary mary 4096 Jul 12 21:00 .
drwxr-xr-x. 5 root root 43 Jul 12 19:47 ..
-rw-------. 1 mary mary 174 Jul 12 21:00 .bash_history
-rw-r--r--. 1 mary mary 18 Jan 29 2014 .bash_logout
-rw-r--r--. 1 mary mary 193 Jan 29 2014 .bash_profile
-rw-r--r--. 1 mary mary 231 Jan 29 2014 .bashrc
drwxrwxr-x. 3 mary mary 17 Jul 12 20:01 .cache
drwxr-xr-x. 3 mary mary 67 Jul 12 20:01 .config
drwxr-xr-x. 4 mary mary 37 Jan 7 2015 .mozilla
-rw-rw-r--. 1 mary mary 1395 Jul 12 20:10 secret
[mary@server0 ~]$ gpg --gen-key
gpg (GnuPG) 2.0.22; Copyright (C) 2013 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
gpg: directory `/home/mary/.gnupg' created
gpg: new configuration file `/home/mary/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/mary/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/home/mary/.gnupg/secring.gpg' created
gpg: keyring `/home/mary/.gnupg/pubring.gpg' created
Please select what kind of key you want:
(1) RSA and RSA (default)
(2) DSA and Elgamal
(3) DSA (sign only)
(4) RSA (sign only)
Your selection? 1
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048) 4096
Requested keysize is 4096 bits
Please specify how long the key should be valid.
0 = key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Key is valid for? (0) 2w
Key expires at Wed 26 Jul 2017 09:32:04 PM CST
Is this correct? (y/N) y
GnuPG needs to construct a user ID to identify your key.
Real name: Mary Chen
Email address: mary@server0.example.com
Comment: Mary the Queen
You selected this USER-ID:
"Mary Chen (Mary the Queen) <mary@server0.example.com>"
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
You need a Passphrase to protect your secret key.
****open a dialog window
gpg: cancelled by user
gpg: Key generation canceled.
[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/
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!
沒有留言:
張貼留言