GNU Privacy Guard

From Christoph's Personal Wiki
Revision as of 06:42, 22 August 2020 by Christoph (Talk | contribs) (Created page with "'''GNU Privacy Guard''' ('''GnuPG''' or '''GPG''') is a free-software replacement for Symantec's PGP cryptographic software suite. ==Install== ; Red Hat / CentOS $ yum ins...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

GNU Privacy Guard (GnuPG or GPG) is a free-software replacement for Symantec's PGP cryptographic software suite.

Install

Red Hat / CentOS
$ yum install gnupg
Ubuntu / Debian
$ apt-get install gnupg
macos
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
$ brew install gnupg
#~OR~
$ brew install gnupg2

Usage

  • Create your GPG key:
$ gpg --gen-key
  • Export your public key:
$ gpg --export --armor youremail@example.com > mypubkey.asc
  • Import another person's public key:
$ gpg --import theirpubkey.asc
  • List the public keys in your keyring:
$ gpg --list-keys
  • List private keys in your keyring:
$ gpg --list-secret-keys
  • Trust a public key:
gpg --edit-key bob

trust (invoke trust subcommand on the key)
5 (ultimate trust)
y (if prompted)
quit

External links