GPG

https://wiki.debian.org/Keysigning

Create key

1
2
3
4
5
6
$ cat >> ~/.gnupg/gpg.conf <<EOF
> personal-digest-preferences SHA256
> cert-digest-algo SHA256
> default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed
> EOF
$ gpg --full-generate-key

private key:

  • decrypt emails sent to you
  • digitally sign emails

public key:

  • send you encrypted mail
  • verify emails you send.

revocation certificate:

What happens if you lose access to a secret keyimg, or it stops being secret? A revocation certificateimg is a file that you can generate that announces that you no longer trust that key. You generate it when you still have the secret key, and keep it for any future disaster.

replacing keys

https://keyring.debian.org/

Ubuntu

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