From b78dd4054775de38e0de957fa373ad5c3063b105 Mon Sep 17 00:00:00 2001 From: Rob Young Date: Mon, 20 Jun 2016 23:58:28 +0100 Subject: [PATCH] Add examples for exporting GPG keys (#907) This chage adds examples for exporting public and private GPG keys. This is particularly useful for backing up keys. In both cases they have been output as ASCII armored text with the `--armor` flag to make the output easier to work with. --- pages/common/gpg.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/gpg.md b/pages/common/gpg.md index 48d4be0750..2a032dc7d1 100644 --- a/pages/common/gpg.md +++ b/pages/common/gpg.md @@ -21,3 +21,11 @@ - Import a public key: `gpg --import {{public.gpg}}` + +- Export public key for alice@example.com (output to STDOUT): + +`gpg --export --armor {{alice@example.com}}` + +- Export private key for alice@example.com (output to STDOUT): + +`gpg --export-secret-keys --armor {{alice@example.com}}`