Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@owainlewis
Last active April 18, 2019 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owainlewis/9fb84fd96963a03f56bcbbaf0c289883 to your computer and use it in GitHub Desktop.
Save owainlewis/9fb84fd96963a03f56bcbbaf0c289883 to your computer and use it in GitHub Desktop.
GPG Tutorial

Quick Guide to using GPG

❯ gpg --gen-key

List keys

❯ gpg --list-keys

Export

❯ gpg --export-secret-keys --armor <fingerprint> > private.asc
❯ gpg --export --armor <fingerprint> > public.asc

Import

❯ gpg --import public.asc
❯ gpg --allow-secret-key-import --import private.asc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment