aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2022-12-30 19:05:34 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2022-12-30 19:05:34 +0100
commit07bb356630e019ec860bff7a69af819322cd8947 (patch)
tree6bbff97da6d75f5e46cfbbac7608fbd452f8406d /src/tools
parent4a8c8c7520419cbaa01b26353ef35e357c5d1ecf (diff)
downloadnotes-07bb356630e019ec860bff7a69af819322cd8947.tar.gz
notes-07bb356630e019ec860bff7a69af819322cd8947.zip
gpg: add not to extend key lifetime
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/gpg.md22
1 files changed, 22 insertions, 0 deletions
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 <file>.asc <file>
- 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 <key.asc>
+```
+
+### Extend expiring key
+```bash
+gpg --edit-key <key id>
+
+# 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.
+```