gnupg
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
gnupg [2009/09/02 17:47] – cangiani | gnupg [2024/06/03 09:30] (current) – admin | ||
---|---|---|---|
Line 3: | Line 3: | ||
==== General ==== | ==== General ==== | ||
- | There is a lot of documentation about GnuPG on the [[http:// | + | There is a lot of documentation about GnuPG on the [[http:// |
< | < | ||
Line 10: | Line 10: | ||
* to encrypt a message for a friend of yours, use his public key | * to encrypt a message for a friend of yours, use his public key | ||
* to sign a message: use your private key | * to sign a message: use your private key | ||
+ | * you should be sure that you can trust your public keys. The ideal thing is to organize //key exchange parties// with your friends or at least, to ask your friends to confirm that the key you have is valid (e.g. by comparing key fingerprint that you obtain from '' | ||
</ | </ | ||
+ | |||
+ | Anyway, the very first thing to do is to create your own private/ | ||
+ | < | ||
+ | # gpg --gen-key | ||
+ | gpg (GnuPG/ | ||
+ | This is free software: you are free to change and redistribute it. | ||
+ | There is NO WARRANTY, to the extent permitted by law. | ||
+ | |||
+ | 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? 2 | ||
+ | DSA keys may be between 1024 and 3072 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>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) 3 | ||
+ | Key expires at Sat Sep 5 16:59:34 2009 CEST | ||
+ | Is this correct? (y/N) y | ||
+ | | ||
+ | GnuPG needs to construct a user ID to identify your key. | ||
+ | |||
+ | Real name: Flash Gordon | ||
+ | Email address: flash.gordon@gmail.com | ||
+ | Comment: this is another test key | ||
+ | You selected this USER-ID: | ||
+ | "Flash Gordon (this is another test key) < | ||
+ | |||
+ | Change (N)ame, (C)omment, (E)mail or (O)kay/ | ||
+ | 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. | ||
+ | gpg: WARNING: some OpenPGP programs can't handle a DSA key with this digest size | ||
+ | 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 48C7AF6A 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: | ||
+ | gpg: next trustdb check due at 2009-09-03 | ||
+ | pub | ||
+ | Key fingerprint = 695D 354D E592 8677 50E5 5E62 DF8B 511A 48C7 AF6A | ||
+ | uid Flash Gordon (this is another test key) < | ||
+ | sub | ||
+ | </ | ||
An handy way of sharing your public key is to upload it to a public key server like '' | An handy way of sharing your public key is to upload it to a public key server like '' | ||
Line 69: | Line 129: | ||
sub | sub | ||
</ | </ | ||
- | |||
- | ==== Mac ==== | ||
- | {{ mail: | ||
- | Setup your private key. Launch GPG Keychain Access. Normally, if you never used GnuPG before, you will probably be asked if you want to create or import your personal private/ | ||
- | |||
- | {{ mail: | ||
- | |||
- | PGPMail is well documented in its [[http:// | ||
- | |||
- | ==== Linux ==== | ||
- | **TODO** | ||
- | ===== Install ===== | ||
- | ==== Mac (Leopard) + Apple Mail ==== | ||
- | - Download and install the latest version of Mac GNU Privacy Guard v2.x from [[http:// | ||
- | - {{ mail: | ||
- | - Download and install GPG Keychain Access also from [[http:// | ||
- | - Download and install [[http:// | ||
- | ==== Linux ==== | ||
- | GnuPG is installed by default on most Linux machines. | ||
- | **TODO** |
gnupg.1251906442.txt.gz · Last modified: 2009/09/02 17:47 by cangiani