aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-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 <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 &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>