aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gpg.html
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2021-11-24 23:50:09 +0000
committerjohannst <johannst@users.noreply.github.com>2021-11-24 23:50:09 +0000
commit241f2c89769a72a0e04540a0310af2817b60ae24 (patch)
tree60ff344755029bec7a35392c315b61fd4904396d /tools/gpg.html
parent32a4c0dddc20f75b484ffb4a85c5374215416829 (diff)
downloadnotes-241f2c89769a72a0e04540a0310af2817b60ae24.tar.gz
notes-241f2c89769a72a0e04540a0310af2817b60ae24.zip
deploy: 4b2d24e60b147e5a7552e01ba800573164b2c441
Diffstat (limited to 'tools/gpg.html')
-rw-r--r--tools/gpg.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/gpg.html b/tools/gpg.html
index 65bfaec..5085c8c 100644
--- a/tools/gpg.html
+++ b/tools/gpg.html
@@ -210,9 +210,10 @@ gpg -o &lt;file&gt; --decrypt &lt;file&gt;.gpg
</code></pre>
<h2><a class="header" href="#signing" id="signing">Signing</a></h2>
<p>Generate a signed file and write to <code>&lt;file&gt;.gpg</code>.</p>
-<pre><code class="language-bash">gpg --sign -u foor@bar.de &lt;file&gt;
+<pre><code class="language-bash"># Sign with private key of foo@bar.de
+gpg --sign -u foor@bar.de &lt;file&gt;
-# Verify
+# Verify with public key of foo@bar.de
gpg --verify &lt;file&gt;
# Extract content from signed file
@@ -223,7 +224,7 @@ gpg -o &lt;file&gt; --decrypt &lt;file&gt;.gpg
</blockquote>
<p>Files can also be <code>signed</code> and <code>encrypted</code> at once, gpg will first sign the
file and then encrypt it.</p>
-<pre><code class="language-bash">gpg --sign --encrypt &lt;file&gt;
+<pre><code class="language-bash">gpg --sign --encrypt -r &lt;recipient&gt; &lt;file&gt;
</code></pre>
<h2><a class="header" href="#signing-detached" id="signing-detached">Signing (detached)</a></h2>
<p>Generate a <code>detached</code> signature and write to <code>&lt;file&gt;.asc</code>.