GPG keys help
GPG Keys
Generate GPG/PGP Keys:¶
^_^[Mitesh@Shah:~]$ gpg --gen-key
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
Please specify how long the key should be valid.
0 = key does not expire
= key expires in n days
w = key expires in n weeks
m = key expires in n months
y = key expires in n years
Key is valid for? (0) 0
Key does not expire at all
Is this correct? (y/N) y
Real name: Mitesh Shah
Email address: Mr.Miteshah@gmail.com
Comment: rtCamp Launchpad
You selected this USER-ID:
"Mitesh Shah (rtCamp Launchpad) <Mr.Miteshah@gmail.com>"
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
generator a better chance to gain enough entropy.
Not enough random bytes available. Please do some other work to give
the OS a chance to collect more entropy! (Need 281 more bytes)
Just open another terminal window and run some commands which generates plenty of activity.
My favorite is running a disk write performance benchmark using:
dd bs=1M count=1024 if=/dev/zero of=test conv=fdatasync
List Keys:¶
^_^[Mitesh@Shah:~]$ gpg --list-keys
/home/mitesh/.gnupg/pubring.gpg
------------------------
pub 4096R/387AFF02 2014-04-21
uid Mitesh Shah (rtCamp Launchpad) <Mr.Miteshah@gmail.com>
sub 4096R/0B9C8B2D 2014-04-21
Making An ASCII Armored Version Your Public Key:¶
^_^[Mitesh@Shah:~]$ gpg --output MiteshShah.asc --export -a $GPGKEY
NOTE: In This Example $GPGKEY = 387AFF02
Upload Keys To Ubuntu Key Server:¶
^_^[Mitesh@Shah:~]$ gpg --send-keys --keyserver keyserver.ubuntu.com $GPGKEY
GPG Key FingerPrint:¶
^_^[Mitesh@Shah:~]$ gpg --fingerprint
/home/mitesh/.gnupg/pubring.gpg
------------------------
pub 4096R/387AFF02 2014-04-21
Key fingerprint = 80D6 A2F6 AA2F E34F 0E3A C850 0E18 6538 387A FF02
uid Mitesh Shah (rtCamp Launchpad) <Mr.Miteshah@gmail.com>
sub 4096R/0B9C8B2D 2014-04-21