m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gpg.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/gpg.md b/gpg.md
index 8b7cc2f..b76bba3 100644
--- a/gpg.md
+++ b/gpg.md
@@ -25,6 +25,10 @@ Add `--armor` to make it readable-ASCII encoded.
gpg --armor --export <ID> [--output <file>]
+## Import key
+
+ gpg --import <key file>
+
## Asymmetric crypto
gpg --encrypt [--sign] [-u <signer>] [--recipient <receipient>] file
@@ -40,6 +44,16 @@ Add new email to key:
> save
# saves and quits
+Sign a key (changes trust from `unknown` to `full`), apparently necessary for
+use in mutt:
+
+ gpg --edit-key <key>
+ > sign
+ > save
+
+ # specify the signing key (by default it's your first one)
+ gpg --local-user <signing key> --edit-key <key to sign>
+
## gpg-agent
`gpg-agent` is a daemon that e.g. provides a passphrase cache for GPG. Running