m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2021-03-25 11:53:10 +0100
committerMarcin Chrzanowski <m@m-chrzan.xyz>2021-03-25 11:53:10 +0100
commita4b0fad555989e17b5f8d5f82088dba0d768063b (patch)
tree7575f2608137487848f5bab3ddd51fa63e56a4c5
parent316487ffb821edf6cd3c47990a812972c0de84a5 (diff)
Update GPG
-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