From d5ff606fa5c51c371c89eb36fe6cacfc5cacaa9e Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Mon, 4 Jun 2012 18:34:51 +0300 Subject: [PATCH] GPG guide: add example outputs to "gpg2 --list-keys" and "gpg2 --fingerprint" --- articles/guides/GPG/GPG.html.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/articles/guides/GPG/GPG.html.md b/articles/guides/GPG/GPG.html.md index adc091c..1d0bc8c 100644 --- a/articles/guides/GPG/GPG.html.md +++ b/articles/guides/GPG/GPG.html.md @@ -41,10 +41,29 @@ First you need to find out the ID of the key, which you just created. You can se > gpg2 --list-keys +Example output: + +``` +% gpg --list-keys +pub 4096R/82A46728 2012-03-27 +uid Mika Suomalainen +sub 4096R/A4271AC5 2012-03-27 +``` + or > gpg2 --fingerprint +Example output: + +``` +% gpg2 --fingerprint +pub 4096R/82A46728 2012-03-27 +Key fingerprint = 24BC 1573 B8EE D666 D10A AA65 4DB5 3CFE 82A4 6728 +uid Mika Suomalainen +sub 4096R/A4271AC5 2012-03-27 +``` + The second command also shows the key fingerprint which is usually used to identify the key. Note that you can see both keyid formats in fingerprint. The last eght characters in keyid are the short format and the last sixteen characters are the long format. If you want to see the long keyid, run