m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/gpg.md
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2021-01-15 23:04:33 +0100
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2021-01-15 23:04:33 +0100
commit758da8fd3a73a70ef093e526207e904ecae60aa3 (patch)
tree27617b9c84b4fdb7982f18ae78645819ce70e97c /gpg.md
parent33921b69b45d4f41d18571416be2c255ce4ebddf (diff)
Update cheatsheets
Diffstat (limited to 'gpg.md')
-rw-r--r--gpg.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/gpg.md b/gpg.md
index 569a91e..d54836d 100644
--- a/gpg.md
+++ b/gpg.md
@@ -28,3 +28,22 @@ Add `--armor` to make it readable-ASCII encoded.
## Asymmetric crypto
gpg --encrypt [--sign] [-u <signer>] [--recipient <receipient>] file
+
+## gpg-agent
+
+`gpg-agent` is a daemon that e.g. provides a passphrase cache for GPG. Running
+enters an interactive shell. Commands can be also be passed on the command line
+as individual arguments.
+
+Configuration in `~/.gnupg/gpg-agent.conf`
+
+* `/bye`: closes connection and shell
+* `keyinfo --list`: lists some information about keys
+
+ S KEYINFO FE40F504838C6FEDF80C0A592AE43EA8BFFC619E D - - - P - - -
+ S KEYINFO 8E6D7DD22EA6A76CB7CB4E52315D4F372F67A23C D - - 1 P - - -
+
+ The long identifier is a "keygrip", use `gpg --list-keys --with-keygrip` to
+ match key with keygrip. The 6th column indicates if the passphrase is currently
+ cached.
+* `reloadagent`: restarts the agent.