diff options
Diffstat (limited to 'tools/gpg.html')
-rw-r--r-- | tools/gpg.html | 7 |
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 <file> --decrypt <file>.gpg </code></pre> <h2><a class="header" href="#signing" id="signing">Signing</a></h2> <p>Generate a signed file and write to <code><file>.gpg</code>.</p> -<pre><code class="language-bash">gpg --sign -u foor@bar.de <file> +<pre><code class="language-bash"># Sign with private key of foo@bar.de +gpg --sign -u foor@bar.de <file> -# Verify +# Verify with public key of foo@bar.de gpg --verify <file> # Extract content from signed file @@ -223,7 +224,7 @@ gpg -o <file> --decrypt <file>.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 <file> +<pre><code class="language-bash">gpg --sign --encrypt -r <recipient> <file> </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><file>.asc</code>. |