Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Latest commit

 

History

History

gpg

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

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.