GENERATE KEY PAIR: gpg --full-generate-key LIST AND EDIT KEYS: gpg --list-keys gpg --list-public-keys gpg --list-secret-keys gpg --edit-key KEY_ID gpg --list-secret-keys --keyid-format=long delete: gpg --delete-secret-keys KEY_ID gpg --delete-key KEY_ID gpg --erase-private-key KEY_ID --------------------------------------- IMPORT / EXPORT KEYS: Export Public Key gpg --output public.pgp --armor --export username@email IMPORTA UNA CHIAVE PUBBLICA PER MANDARE MESSAGGI CODIFICATI: gpg --import key.pub NOTE RIGUARDO L'IMPORT: 1. inutile importare la propria chiave pubblica 2. dopo l'import della propria chiave settare subito il trust (vedi sotto) a ultimate se no chiede conferma a ogni utilizzo (il trust è una cosa locale, va fatto su ogni macchina/utente a ogni import) 3. l'import delle chiavi e` relativo ALL'UTENTE CHE STAI USANDO, quindi se passi da root a utente e viceversa, le chiavi "spariscono" 4. metti sempre una password alla tua chiave privata TRUST A KEY: (in case of error: "There is no assurance this key belongs to the named user") gpg --edit-key gpg> trust