diff options
author | johannst <johannst@users.noreply.github.com> | 2022-12-30 18:05:51 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2022-12-30 18:05:51 +0000 |
commit | 20edb41842624c3535bb20f530e887e908c530a9 (patch) | |
tree | f46eab59c0097a3691bde3548a69a6e2e3ac378d /tools | |
parent | ead2ca2cfa3774af733c613ea03d9b4f3d10fbdf (diff) | |
download | notes-20edb41842624c3535bb20f530e887e908c530a9.tar.gz notes-20edb41842624c3535bb20f530e887e908c530a9.zip |
deploy: 07bb356630e019ec860bff7a69af819322cd8947
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gpg.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/gpg.html b/tools/gpg.html index 30139d0..5fdeceb 100644 --- a/tools/gpg.html +++ b/tools/gpg.html @@ -243,6 +243,23 @@ gpg --verify <file>.asc <file> <li>http://keyserver.ubuntu.com</li> <li>hkps://pgp.mailbox.org</li> </ul> +<h2 id="examples"><a class="header" href="#examples">Examples</a></h2> +<h3 id="list-basic-key-information-from-file-with-long-keyids"><a class="header" href="#list-basic-key-information-from-file-with-long-keyids">List basic key information from file with long keyids</a></h3> +<pre><code class="language-bash">gpg --keyid-format 0xlong <key.asc> +</code></pre> +<h3 id="extend-expiring-key"><a class="header" href="#extend-expiring-key">Extend expiring key</a></h3> +<pre><code class="language-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. +</code></pre> </main> |