Generate a public_key on Screen:
[oracle@Linux03 ~]$ gpg --list-keys
/home/oracle/.gnupg/pubring.gpg
-------------------------------
pub 2048R/5C7C15D6 2016-09-02
uid Test1234 (Test gpg key) <Test1234@gmail.com>
sub 2048R/AAEC411C 2016-09-02
[oracle@Linux03 ~]$ gpg --export -a Test1234
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.14 (GNU/Linux)
mQENBFfJiSsBCAC3x8IIrIEcogQ18xh0JrQxmdoGhyX1LHe+NH6mbC5jo5u7wiga
4LKDF50h51ZKYAgHLlg7Xu7It/Mneb+NVvta+XRXb2rclbx0bHUF1faojOYnzcRr
ZauOYVV52Q5otIVq6Ra22mX5smkrCxKjD3DVTD0silmhJP734nlXUJjnrEw1Pxxy
A4xqJTaf6ZYtVd5JDdhDk8pxiGj6cUDUxpIGVFXZfJ7os0aS/P7wunrHVSEmN16V
NyPVzpTIq+wwiMNp53y92NevxbT9N4WaUkLDMHoIca/SZ0Mk7Gy+OLm0azByTsjj
Uq7i3DJ8K1k96O3CtwQc4PD4SWYjcazYkEuHABEBAAG0LFRlc3QxMjM0IChUZXN0
IGdwZyBrZXkpIDxUZXN0MTIzNEBnbWFpbC5jb20+iQE4BBMBAgAiBQJXyYkrAhsD
BgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRDUtOPFXHwV1uMzCAClYXfJn/2F
YBw6stUzeDftt4I5h0+m0L9u+/bmbL87wdQpP4EOZNNq+srNr8Usnlm1CN955Lw1
Gwoo9Q06CaunNwPOXlph3bbmzL/zDryGR9u5ONl7SRHql3xJ1mCQGAMH6KLHP8PE
5KFdtd5xUw7RX1iOs739LOj5Nt8XRpqdfesDFi2zrl8mzmlXj1EFOFMSGjqlFsDL
pMTSA1R0NfepApvx4BTT2OdgFTksulZxLinla9RKdKIXs5HRWaTNGE9/tRL9IAEJ
5o7ZKs93jh0OOErh28nCdFFzc+pAKfPkBBJoqf217EQmDfm2d+K7k7rU/LSnzErc
eU9Hpvu036UOuQENBFfJiSsBCAD1E6SGsvbSSxcRS3IQr1qOJQZCyt2qGnfgLDAs
8QgdIF4yAj1zlDxhDvuRsCwKQrDDtadk+iplDuiqPgqYg0zr6JqXbjTdthw0gaSp
6QGqSEXIyfcrqCcgjF8mVL1D2vaF3dhQjVZWuEcnxMXtHJNQOeajrjhlyh4+wWpc
2/l4qm8dyPcqVdvcK9R62vcddi0ql5wHYMEHDF4QtA3CAYUmMl9jrQENWwBHY8Y6
HW8QejAlw7+kFxC2ZghRCgGvJytyQ8rPzMOG9qjU9MYdcWqe2ULr2/0jwAY+pPrB
db7MEwsWZHvLdf7D4MI6aA7/Iwv3vTaAiaD2HCPAjtF69DL5ABEBAAGJAR8EGAEC
AAkFAlfJiSsCGwwACgkQ1LTjxVx8FdaeaQgArWSxoHOjNW1LWvqA60DGgYRH6O42
y6itbtkyUHPiqdGjghFzcAnW3eZqj+oqGK3dayArtKVjQZUA2Nw3dlGXjNnfddAB
h4ZkeM2pnn/v9KwjILDVvPb+YavV/tv3Tr4zqi7s0ahSr9w2TvgoaVE6pYJNkWJT
Wy78P00cUBEUskSMc5twiYw8RKNsrDlacHt0czt5kCZ74Wst4+8bj9C2VLZm6b0B
qEGzXo4nZdnxIvAiHiE7vhmoygAU/tcS1sqV9KQj/thWdDD5+2HL4c0ecUsakoHE
81n91zRR8fesLdOKQPQfDmiwBMGJH+AdqwF+NUboIqT/WlwlSq45ompqqw==
=aoR+
-----END PGP PUBLIC KEY BLOCK-----
----------------- ---------------- -----------------------------
We can also generate the publickey and direct it to OuputFile:
----------------- ---------------- -----------------------------
Just use this cmd :
[oracle@Linux03 ~]$ ls -ll Test1234_pubkey*
ls: cannot access Test1234_pubkey*: No such file or directory
[oracle@Linux03 ~]$ gpg -o Test1234_pubkey.key --export -a Test1234
[oracle@Linux03 ~]$ ls -ll Test1234_pubkey*
-rw-rw-r--. 1 oracle oracle 1735 Sep 2 09:18 Test1234_pubkey.key
[oracle@Linux03 ~]$ gpg --export -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uEcnxMXtHJNQOeajrjhlyh4+wWpc
2/l4qm8dyPcqVdvcK9R62vcddi0ql5wHYMEHDF4QtA3CAYUmMl9jrQENWwBHY8Y6
HW8QejAlw7+kFxC2ZghRCgGvJytyQ8rPzMOG9qjU9MYdcWqe2ULr2/0jwAY+pPrB
db7MEwsWZHvLdf7D4MI6aA7/Iwv3vTaAiaD2HCPAjtF69DL5ABEBAAGJAR8EGAEC
AAkFAlfJiSsCGwwACgkQ1LTjxVx8FdaeaQgArWSxoHOjNW1LWvqA60DGgYRH6O42
y6itbtkyUHPiqdGjghFzcAnW3eZqj+oqGK3dayArtKVjQZUA2Nw3dlGXjNnfddAB
h4ZkeM2pnn/v9KwjILDVvPb+YavV/tv3Tr4zqi7s0ahSr9w2TvgoaVE6pYJNkWJT
Wy78P00cUBEUskSMc5twiYw8RKNsrDlacHt0czt5kCZ74Wst4+8bj9C2VLZm6b0B
qEGzXo4nZdnxIvAiHiE7vhmoygAU/tcS1sqV9KQj/thWdDD5+2HL4c0ecUsakoHE
81n91zRR8fesLdOKQPQfDmiwBMGJH+AdqwF+NUboIqT/WlwlSq45ompqqw==
=aoR+
-----END PGP PUBLIC KEY BLOCK-----
Reference :
http://irtfweb.ifa.hawaii.edu/~lockhart/gpg/gpg-cs.html
People use a key server to store their keys. That can be used as a vallet. One such example is https://pgp.mit.edu/
No comments:
Post a Comment