Securities Software (Management & Limitation).Linux GnuPG
minimum keysize is 768 bits default keysize is 1024 bits highest suggested keysize is 2048 bits What keysize do you want? (1024) 2048 Do you really need such a large keysize? y Requested keysize is 2048 bits Please specify how long the key should be valid.
0 = key does not expire
You need a User-ID to identify your key; the software constructs the user id from Real Name, Comment and Email Address in this form: “Heinrich Heine (Der Dichter)
Real name: Gerhard Mourani
Email address: gmourani@videotron.ca
Comment: [Press Enter]
You selected this USER-ID:
“Gerhard Mourani
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o You need a Passphrase to protect your secret key.
We need to generate a lot of random bytes. It is a good idea to perform some other action (type on the keyboard, move the mouse, utilize the disks) during the prime generation; this gives the random number generator a better chance to gain enough entropy.
public and secret key created and signed. A new key-pair is created (secret and public key) in the “root” home directory (-/root).
Importing keys
Once our own key-pair is created, we can begin to put into our public keyring database of all keys we have from some trusted third partly in order to be able to use his/her keys for future encryption and authentication communication.
• To import Public Keys to your keyring, use the following command: [root@deep /]# gpg -import
As an example:
[root@deep /]# gpg -import redhat2.asc
gpg: key DB42A60E: public key imported
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: Total number processed: 1
gpg: imported: 1