From 619537629f03bb79e212458b3c716c47d8190ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dalibor=20Karlovi=C4=87?= Date: Mon, 26 Jun 2023 11:19:08 +0200 Subject: [PATCH 1/3] fix: add an explicit example about publishing the pubkey when expiring --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cf92f75..4b9a7f4 100644 --- a/README.md +++ b/README.md @@ -2026,7 +2026,7 @@ Key is valid for? (0) ``` Follow these prompts to set a new expiration date, then `save` to save your changes. -Next, export the public key: +Next, [export the public key](#export-public-keys): ```console $ gpg --armor --export $KEYID > gpg-$KEYID-$(date +%F).asc @@ -2038,6 +2038,18 @@ Transfer that public key to the computer from which you use your GPG key, and th $ gpg --import gpg-0x*.asc ``` +Alternatively, use a public key server (it will update the key if already on the server): + +```console +$ gpg --send-key $KEYID +```console + +and import the newly on any computer where you wish to use it (it will update the key if previously imported): + +```console +$ gpg --recv $KEYID +``` + This will extend the validity of your GPG key and will allow you to use it for SSH authorization. Note that you do _not_ need to update the SSH public key located on remote servers. ## Rotating keys From 3caab5bacfcadb5312263e2f899b5fa9f6a10a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dalibor=20Karlovi=C4=87?= Date: Mon, 26 Jun 2023 11:21:22 +0200 Subject: [PATCH 2/3] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b9a7f4..1ecf2ca 100644 --- a/README.md +++ b/README.md @@ -2044,7 +2044,7 @@ Alternatively, use a public key server (it will update the key if already on the $ gpg --send-key $KEYID ```console -and import the newly on any computer where you wish to use it (it will update the key if previously imported): +and import the newly updated key on any computer where you wish to use it (it will update the key if previously imported): ```console $ gpg --recv $KEYID From 2383a668231919d0d51ec00c3679f35eb5d60b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dalibor=20Karlovi=C4=87?= Date: Mon, 14 Aug 2023 10:19:42 +0200 Subject: [PATCH 3/3] fix bad copy paste --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1ecf2ca..e452ea8 100644 --- a/README.md +++ b/README.md @@ -2042,7 +2042,7 @@ Alternatively, use a public key server (it will update the key if already on the ```console $ gpg --send-key $KEYID -```console +``` and import the newly updated key on any computer where you wish to use it (it will update the key if previously imported):