12 January 2013

Step by Step to create & delete GPG key

Step by Step to Delete GPG key
[oracle@muthu ~]$ gpg --delete-secret-keys 0FD2BDAA
gpg (GnuPG) 1.4.5; Copyright (C) 2006 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.


sec  1024D/0FD2BDAA 2013-01-11 Muthu <thalaimuthu@gmail.com>

Delete this key from the keyring? (y/N) y
This is a secret key! - really delete? (y/N) y
[oracle@muthu ~]$ gpg --delete-keys 0FD2BDAA
gpg (GnuPG) 1.4.5; Copyright (C) 2006 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.


pub  1024D/0FD2BDAA 2013-01-11 Muthu <thalaimuthu@gmail.com>

Delete this key from the keyring? (y/N) y

Step by Step to Create GPG key :-

[oracle@muthu ~]$ gpg --gen-key
gpg (GnuPG) 1.4.5; Copyright (C) 2006 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.

Please select what kind of key you want:
   (1) DSA and Elgamal (default)
   (2) DSA (sign only)
   (5) RSA (sign only)
Your selection? 1
DSA keypair will have 1024 bits.
ELG-E keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048)
Requested keysize is 2048 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) 0
Key does not expire at all
Is this correct? (y/N) y

You need a user ID to identify your key; the software constructs the user ID
from the Real Name, Comment and Email Address in this form:
    "Heinrich Heine (Der Dichter) <heinrichh@duesseldorf.de>"

Real name: Muthu
Email address: thalaimuthu@gmail.com
Comment:
You selected this USER-ID:
    "Muthu  <thalaimuthu@gmail.com>"

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
You need a Passphrase to protect your secret key.

You don't want a passphrase - this is probably a *bad* idea!
I will do it anyway.  You can change your passphrase at any time,
using this program with the option "--edit-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.
+++++++++++++++++++++++++.+++++++++++++++.++++++++++.++++++++++.+++++.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++..................................+++++

Not enough random bytes available.  Please do some other work to give
the OS a chance to collect more entropy! (Need 86 more bytes)
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.
.++++++++++.++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.+++++.+++++.+++++.++++++++++.+++++++++++++++++++++++++.+++++..++++++++++++++++++++>++++++++++.>.+++++<.+++++..........>+++++.....................<+++++.>+++++........................+++++^^^^^^^^^^^
gpg: key FD3D8E3C marked as ultimately trusted
public and secret key created and signed.

gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:  22  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 22u
gpg: next trustdb check due at 2018-07-29
pub   1024D/FD3D8E3C 2013-01-11
      Key fingerprint = 1709 3B52 C2E1 73CD 3CFC  461D 3220 850C FD3D 8E3C
uid                  Muthu  <thalaimuthu@gmail.com>
sub   2048g/EB04ED8C 2013-01-11

[oracle@muthu ~]$

No comments: