aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/gpg.md5
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)