This repository was archived by the owner on Aug 10, 2020. It is now read-only. 
 -   Notifications  You must be signed in to change notification settings 
- Fork 8
Generating GPG Keys
 bnap00 edited this page Mar 21, 2017  · 1 revision 
 ^_^[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^_^[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^_^[Mitesh@Shah:~]$ gpg --output MiteshShah.asc --export -a $GPGKEYNOTE: In This Example $GPGKEY = 387AFF02
^_^[Mitesh@Shah:~]$ gpg --send-keys --keyserver keyserver.ubuntu.com $GPGKEY^_^[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