From 241f2c89769a72a0e04540a0310af2817b60ae24 Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 24 Nov 2021 23:50:09 +0000 Subject: deploy: 4b2d24e60b147e5a7552e01ba800573164b2c441 --- tools/gpg.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tools/gpg.html') 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

Signing

Generate a signed file and write to <file>.gpg.

-
gpg --sign -u foor@bar.de <file>
+
# 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
 
 

Files can also be signed and encrypted at once, gpg will first sign the file and then encrypt it.

-
gpg --sign --encrypt <file>
+
gpg --sign --encrypt -r <recipient> <file>
 

Signing (detached)

Generate a detached signature and write to <file>.asc. -- cgit v1.2.3