Kapsin logo

Kapsi Internet-käyttäjät ry

Viestien salaus PGP:llä

Avaimen luominen

$ mkdir ~/.gnupg
$ chmod 700 ~/.gnupg
$ gpg --gen-key

Please select what kind of key you want:
   (1) DSA and ElGamal (default)
   (2) DSA (sign only)
   (4) RSA (sign only)
Your selection? 1

DSA keypair will have 1024 bits.
About to generate a new ELG-E keypair.
      minimum keysize is  768 bits
      default keysize is 1024 bits
      highest suggested keysize is 2048 bits
What keysize do you want? (1024) 2048 
				
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) 1y

Key expires at Tue 01 Nov 2005 04:44:52 PM EET
Is this correct (y/n)? y

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) <heinrichh@duesseldorf.de>"
    
Real name: Oma Nimi
Email address: oma@nimi.info
Comment: foobar

You selected this USER-ID:
    "Oma Nimi (foobar) <oma@nimi.info>"
    
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O

You need a Passphrase to protect your secret key.    

Enter passphrase:
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.
key marked as ultimately trusted.

pub  1024D/D9BB2512 2005-10-31 Oma Nimi (foobar) <oma@nimi.info>
     Key fingerprint = D9B1 6095 D55C 9870 F7A9  0342 8295 1FF7 D9BB 2512
     sub  2048g/85D4AEC3 2005-10-31 [expires: 2005-11-01]

Avaimen lähettäminen keyserverille

$ gpg --keyserver pgp.mit.edu --send-keys

Käyttö Thunderbird-sähköpostiohjelman kanssa

Asenna Enigmail -laajennus