From 07bb356630e019ec860bff7a69af819322cd8947 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Fri, 30 Dec 2022 19:05:34 +0100 Subject: gpg: add not to extend key lifetime --- src/tools/gpg.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/tools/gpg.md b/src/tools/gpg.md index f79265b..c37353f 100644 --- a/src/tools/gpg.md +++ b/src/tools/gpg.md @@ -114,3 +114,25 @@ gpg --verify .asc - http://pgp.mit.edu - http://keyserver.ubuntu.com - hkps://pgp.mailbox.org + +## Examples + +### List basic key information from file with long keyids +```bash +gpg --keyid-format 0xlong +``` + +### Extend expiring key +```bash +gpg --edit-key + +# By default we are on the primary key, can switch to sub key. +gpg> key 1 + +# Update the expire date. +gpg> expire + +gpg> save + +# Update keyserver(s) and/or export new pub keyfile. +``` -- cgit v1.2.3