From 44b16c22876dd41554ff06d639a2ce2691eed8eb Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Wed, 24 Nov 2021 00:06:06 +0100 Subject: gpg: fix notes on signing --- src/tools/gpg.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tools/gpg.md b/src/tools/gpg.md index 4e7c73a..316f53f 100644 --- a/src/tools/gpg.md +++ b/src/tools/gpg.md @@ -75,9 +75,10 @@ gpg -o --decrypt .gpg ## Signing Generate a signed file and write to `.gpg`. ```bash +# Sign with private key of foo@bar.de gpg --sign -u foor@bar.de -# Verify +# Verify with public key of foo@bar.de gpg --verify # Extract content from signed file @@ -88,7 +89,7 @@ gpg -o --decrypt .gpg Files can also be `signed` and `encrypted` at once, gpg will first sign the file and then encrypt it. ```bash -gpg --sign --encrypt +gpg --sign --encrypt -r ``` ## Signing (detached) -- cgit v1.2.3