diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2022-12-30 19:05:34 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2022-12-30 19:05:34 +0100 |
commit | 07bb356630e019ec860bff7a69af819322cd8947 (patch) | |
tree | 6bbff97da6d75f5e46cfbbac7608fbd452f8406d /src/tools/gpg.md | |
parent | 4a8c8c7520419cbaa01b26353ef35e357c5d1ecf (diff) | |
download | notes-07bb356630e019ec860bff7a69af819322cd8947.tar.gz notes-07bb356630e019ec860bff7a69af819322cd8947.zip |
gpg: add not to extend key lifetime
Diffstat (limited to 'src/tools/gpg.md')
-rw-r--r-- | src/tools/gpg.md | 22 |
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. +``` |