help.ubuntu.com/community/GnuPrivacyGua...

wiki.ubuntuusers.de/GnuPG?highlight=gpg

gpg commands

create key:
gpg —gen-key

list keys:
gpg —list-secret-keys #private keys
gpg —list-keys #all keys

fingerprint:
gpg —fingerprint

export:
gpg -a —output gpg-key.asc —export

_export secret keys _too (take care):
gpg -a —output gpg-secret-key.asc —export-secret-keys

import:
gpg —import /tmp/dateiname.asc

revoke
gpg —output revoke_.asc —gen-revoke
and in case of:
gpg —import revoke_.asc

upload keys
gpg —send-key

search keys
gpg —search-keys ""
and destroy:
gpg —recv-keys

servers:
subkeys.pgp.net
wwwkeys.eu.pgp.net
pgp.mit.edu
gpg-keyserver.de

set as default:
in ~/.bashrc
export GPGKEY=

add further email-addresses:
gpg —edit-key
Befehl> adduid
name, additional email-adress, comment
Befehl > save

claws-mail:

wiki.ubuntuusers.de/Claws_Mail/Plugins#...
apt-get install claws-mail-pgpinline
apt-get install claws-mail-pgpmime

a)
menu→configuration→plugins→load
and load the gpg modules

b)
configuration→preferences→plugins→gpg
-automatically check signatures
- store password yes or no (what one wants)

c)
configuration→edit accounts→select account→ gpg
default key or based on email or specify ??? A good question

d)
configuration→edit accounts→select account → privacy
set to PGP MIME
select all, but not “always encrypt” ( well: or one wants that…)