Tuesday, February 15, 2011

PGP Key HOWTO

1. install GPG (GNU Privacy Guard) or OpenPGP
Windows: http://www.gpg4win.org/download.html
Ubuntu: already installed
Mac: http://www.securelaptop.org/component/content/article/37-secure/73-openpgp-for-macosx.html

2. generate key
$gpg --gen-key

3. show keys
$gpg --list-keys

4. import other people key
$gpg --import someonePGPKey.asc

5. post mykey to key server
key server: http://pgp.mit.edu/
$export GPGKEY=D8FC66D2
$gpg --output mykey.asc --export -a $GPGKEY
 
6. encrypt file
$gpg --encrypt file -r UerID

More information:

https://help.ubuntu.com/community/GnuPrivacyGuardHowto

No comments: