aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gpg.html
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2022-12-30 18:05:51 +0000
committerjohannst <johannst@users.noreply.github.com>2022-12-30 18:05:51 +0000
commit20edb41842624c3535bb20f530e887e908c530a9 (patch)
treef46eab59c0097a3691bde3548a69a6e2e3ac378d /tools/gpg.html
parentead2ca2cfa3774af733c613ea03d9b4f3d10fbdf (diff)
downloadnotes-20edb41842624c3535bb20f530e887e908c530a9.tar.gz
notes-20edb41842624c3535bb20f530e887e908c530a9.zip
deploy: 07bb356630e019ec860bff7a69af819322cd8947
Diffstat (limited to 'tools/gpg.html')
-rw-r--r--tools/gpg.html17
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 &lt;file&gt;.asc &lt;file&gt;
<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 &lt;key.asc&gt;
+</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 &lt;key id&gt;
+
+# By default we are on the primary key, can switch to sub key.
+gpg&gt; key 1
+
+# Update the expire date.
+gpg&gt; expire
+
+gpg&gt; save
+
+# Update keyserver(s) and/or export new pub keyfile.
+</code></pre>
</main>