PGP Key HOWTO: Difference between revisions
From D3xt3r01.tk
Jump to navigationJump to search
m New page: Step 1. Generate a key <source lang="bash"> gpg --gen-key </source> Step 2. List the keys <source lang="bash"> gpg --list-keys </source> Step 3. Add a photo < 288x240 recommended since it'... |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Step 1. Generate a key | * Step 1. Generate a key | ||
<source lang="bash"> | <source lang="bash"> | ||
gpg --gen-key | gpg --gen-key | ||
</source> | </source> | ||
Step 2. List the keys | * Step 2. List the keys | ||
<source lang="bash"> | <source lang="bash"> | ||
gpg --list-keys | gpg --list-keys | ||
</source> | </source> | ||
Step 3. Add a photo < 288x240 recommended since it's incorporated in the key. The bigger the key, the longer time encrypting/decrypting | * Step 3. Add a photo < 288x240 recommended since it's incorporated in the key.<br/> The bigger the key, the longer time encrypting/decrypting | ||
<source lang="bash"> | <source lang="bash"> | ||
gpg --edit-key KEY | gpg --edit-key KEY | ||
Line 13: | Line 13: | ||
save | save | ||
</source> | </source> | ||
Step 4. Generate a revocation certificate | * Step 4. Generate a revocation certificate | ||
<source lang="bash"> | <source lang="bash"> | ||
gpg --edit-key KEY | gpg --edit-key KEY | ||
addrevoker | addrevoker | ||
</source> | </source> | ||
Step 5. Export your certificate | * Step 5. Export your certificate | ||
<source lang="bash"> | <source lang="bash"> | ||
gpg --armor --output dexter.asc --export KEY | gpg --armor --output dexter.asc --export KEY | ||
</source> | </source> | ||
Step 6. Submit your key to http://keyserver.pgp.com/vkd/GetWelcomeScreen.event | * Step 6. Submit your key to http://keyserver.pgp.com/vkd/GetWelcomeScreen.event | ||
Step 7. Activate it | * Step 7. Activate it | ||
Step 8. Download and Import their key | * Step 8. Download and Import their key | ||
<source lang="bash"> | <source lang="bash"> | ||
gpg --import keyserver2.pgp.comGlobalDirectoryKey.asc | gpg --import keyserver2.pgp.comGlobalDirectoryKey.asc | ||
</source> | </source> | ||
Step 9. Sign it with your key and mark it as trusted | * Step 9. Sign it with your key and mark it as trusted | ||
<source lang="bash"> | <source lang="bash"> | ||
gpg --edit-key CA57AD7C | gpg --edit-key CA57AD7C | ||
Line 36: | Line 36: | ||
trust | trust | ||
save | save | ||
</source> | |||
* Step 10. Send your key to a key server | |||
<source lang="bash"> | |||
gpg --keyserver pgp.mit.edu --send-key KEY | |||
</source> | </source> |
Latest revision as of 22:32, 10 March 2010
* Step 1. Generate a key
gpg --gen-key
* Step 2. List the keys
gpg --list-keys
* Step 3. Add a photo < 288x240 recommended since it's incorporated in the key.
The bigger the key, the longer time encrypting/decrypting
gpg --edit-key KEY
addphoto
save
* Step 4. Generate a revocation certificate
gpg --edit-key KEY
addrevoker
* Step 5. Export your certificate
gpg --armor --output dexter.asc --export KEY
* Step 6. Submit your key to http://keyserver.pgp.com/vkd/GetWelcomeScreen.event
* Step 7. Activate it
* Step 8. Download and Import their key
gpg --import keyserver2.pgp.comGlobalDirectoryKey.asc
* Step 9. Sign it with your key and mark it as trusted
gpg --edit-key CA57AD7C
sign
trust
save
* Step 10. Send your key to a key server
gpg --keyserver pgp.mit.edu --send-key KEY