How to upload a GPG key
Generate and export a GPG key
Install GPG first if your system does not already include it. Use the same email address you use for Git commits.
Windows
- Install Gpg4win.
- Open PowerShell.
- Run
gpg --full-generate-key. - Choose an RSA or ECC key, set an expiration date, and enter your name and email address.
- List your keys with
gpg --list-secret-keys --keyid-format=long. - Export the public key with
gpg --armor --export KEY_ID.
macOS
- Install GPG with GPG Suite or Homebrew.
- Open Terminal.
- Run
gpg --full-generate-key. - Choose an RSA or ECC key, set an expiration date, and enter your name and email address.
- List your keys with
gpg --list-secret-keys --keyid-format=long. - Export the public key with
gpg --armor --export KEY_ID.
Linux
- Install GPG from your package manager if needed.
- Open your terminal.
- Run
gpg --full-generate-key. - Choose an RSA or ECC key, set an expiration date, and enter your name and email address.
- List your keys with
gpg --list-secret-keys --keyid-format=long. - Export the public key with
gpg --armor --export KEY_ID.
Upload the key to NobGit
- Click your account menu in the top right.
- Click Settings.
- Open Git access.
- Find GPG keys.
- Enter a key Name.
- Paste the ASCII-armored public key into Public key. It normally starts with
-----BEGIN PGP PUBLIC KEY BLOCK-----. - Select Add GPG key.
NobGit syncs the GPG keyring after the key is saved.