shell-whiz-toolkit/gpg/README.md
2024-10-15 09:59:09 +09:00

870 B

gpg shortcuts


(adapted from bt3gl's 20216 guide)

  1. create a key (choose RSA with 4096):
gpg --full-generate-key

  1. share the public key with:
gpg --armor --export > public-key.asc

  1. upload to some keyservers, such as ubuntu or MIT:
gpg --send-keys --keyserver keyserver.ubuntu.com KEYID
gpg --keyserver hkp://pgp.mit.edu --send-key KEYID

  1. backup the private key:
gpg --export-secret-keys --armor KEYID > priv.asc

  1. list your keys:
gpg --list-keys
gpg --list-secret-keys

  1. clean up if needed:
gpg --delete-secret-key KEYID
gpg --delete-key KEYID

  1. finally, you should upload your key into official servers such as ubuntu or mit.