diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2021-11-24 00:06:06 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2021-11-24 00:06:06 +0100 |
commit | 44b16c22876dd41554ff06d639a2ce2691eed8eb (patch) | |
tree | 077b078ac80f7fa690f95521b530f688fdcf88b7 /src/tools/gpg.md | |
parent | 364b1580accf607d8edacbe15376ef785b5b4d9a (diff) | |
download | notes-44b16c22876dd41554ff06d639a2ce2691eed8eb.tar.gz notes-44b16c22876dd41554ff06d639a2ce2691eed8eb.zip |
gpg: fix notes on signing
Diffstat (limited to 'src/tools/gpg.md')
-rw-r--r-- | src/tools/gpg.md | 5 |
1 files 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 <file> --decrypt <file>.gpg ## Signing Generate a signed file and write to `<file>.gpg`. ```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 @@ -88,7 +89,7 @@ gpg -o <file> --decrypt <file>.gpg Files can also be `signed` and `encrypted` at once, gpg will first sign the file and then encrypt it. ```bash -gpg --sign --encrypt <file> +gpg --sign --encrypt -r <recipient> <file> ``` ## Signing (detached) |