[tanj@straylight ~]> gpg --gen-key gpg (GnuPG) 1.4.1; Copyright (C) 2005 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) 1y
Key expires at Сб 28 Окт 02:04:32 2006 EEST
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: There Ain't No Justice
Email address: tanj@known.space
Comment: About time, too!
You selected this USER-ID:
"There Ain't No Justice (About time, too!) <tanj@known.space>"
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
You need a Passphrase to protect your secret key.
[tanj@straylight ~]> gpg --export --output tanj.key tanj@known.space [tanj@straylight ~]> file tanj.key tanj.key: GPG key public ring
[tanj@straylight ~]> gpg --export --output tanj.asc --armor tanj@known.space [tanj@straylight ~]> file tanj.asc tanj.asc: PGP armored data public key block [tanj@straylight ~]>
[tanj@straylight ~]> gpg --import roam.key.asc gpg: key 16194553: public key "Peter Pentchev <roam@ringlet.net>" imported gpg: Total number processed: 1 gpg: imported: 1 gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u gpg: next trustdb check due at 2006-10-27 [tanj@straylight ~]>
[tanj@straylight ~]> cat > foo.txt Open up your mind, let your fantasies unwind, To the power that you know you cannot fight - The power of the music of the night! [tanj@straylight ~]> gpg --sign foo.txt You need a passphrase to unlock the secret key for user: "There Ain't No Justice (About time, too!) <tanj@known.space>" 1024-bit DSA key, ID CB76CD6B, created 2005-10-27 [tanj@straylight ~]> ls foo.txt foo.txt.gpg roam.key.asc tanj.asc tanj.key [tanj@straylight ~]> file foo.txt.gpg foo.txt.gpg: data
[tanj@straylight ~]> gpg --verify foo.txt.gpg gpg: Signature made Пт 28 Окт 02:22:01 2005 EEST using DSA key ID CB76CD6B gpg: Good signature from "There Ain't No Justice (About time, too!) <tanj@known.space>" [tanj@straylight ~]> gpg --verify foo.txt.asc foo.txt gpg: Signature made Пт 28 Окт 02:27:58 2005 EEST using DSA key ID CB76CD6B gpg: Good signature from "There Ain't No Justice (About time, too!) <tanj@known.space>"
[tanj@straylight ~]> gpg -r roam@ringlet.net -r tanj@known.space -e foo.txt [tanj@straylight ~]> file foo.txt.gpg foo.txt.gpg: data
[tanj@straylight ~]> gpg -d foo.txt.gpg
You need a passphrase to unlock the secret key for
user: "There Ain't No Justice (About time, too!) <tanj@known.space>"
2048-bit ELG-E key, ID C15B3BD3, created 2005-10-27 (main key ID CB76CD6B)
gpg: encrypted with 1024-bit ELG-E key, ID 7074473C, created 2002-02-01
"Peter Pentchev <roam@ringlet.net>"
gpg: encrypted with 2048-bit ELG-E key, ID C15B3BD3, created 2005-10-27
"There Ain't No Justice (About time, too!) <tanj@known.space>"
Open up your mind, let your fantasies unwind,
To the power that you know you cannot fight -
The power of the music of the night!
[tanj@straylight ~]>
[tanj@straylight ~]> gpg -r tanj@known.space --armor -e foo.txt [tanj@straylight ~]> file foo.txt.asc foo.txt.asc: PGP armored data message [tanj@straylight ~]> less foo.txt.asc -----BEGIN PGP MESSAGE----- Version: GnuPG v1.4.1 (FreeBSD) hQIOA2zd6kjBWzvTEAf6AgX0u6DY6nwFJrXA3zg+8peCrEQSkELCMCNT2vH7asD3 ... 8OQp1Nm+rGhLRtLzBSLPEc/tyWLJ =EmhT -----END PGP MESSAGE----- [tanj@straylight ~]>
[tanj@straylight ~]> gpg --sign-key roam@ringlet.net
pub 1024D/16194553 created: 2002-02-01 expires: never usage: CS
trust: unknown validity: unknown
Primary key fingerprint: FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553
Peter Pentchev <roam@ringlet.net>
Peter Pentchev <roam@FreeBSD.org>
Peter Pentchev <roam@online.bg>
Peter Pentchev <roam@orbitel.bg>
Peter Pentchev <roam@cnsys.bg>
Are you sure that you want to sign this key with your
key "There Ain't No Justice (About time, too!) <tanj@known.space>" (CB76CD6B)
Really sign? (y/N) y
You need a passphrase to unlock the secret key for
user: "There Ain't No Justice (About time, too!) <tanj@known.space>"
1024-bit DSA key, ID CB76CD6B, created 2005-10-27
Enter passphrase:
Please decide how far you trust this user to correctly verify other users' keys (by looking at passports, checking fingerprints from different sources, etc.) 1 = I don't know or won't say 2 = I do NOT trust 3 = I trust marginally 4 = I trust fully 5 = I trust ultimately m = back to the main menu Your decision?