GPG: Difference between revisions
From YM2149.org
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
* <code>gpg-connect-agent <<<reloadagent</code> to pick up new config | * <code>gpg-connect-agent <<<reloadagent</code> to pick up new config | ||
** this also forgets cached passphrases | ** this also forgets cached passphrases | ||
* <code>gpg-connect-agent <<<'keyinfo --list'</code> to check which keys are currently unlocked, look for a <code>1</code> | * <code>gpg-connect-agent <<<'keyinfo --list'</code> to check which keys (by keygrip) are currently unlocked, look for a <code>1</code> | ||
** note that all keys with the same passphrase are unlocked even if this shows just one of them is | ** note that all keys with the same passphrase are unlocked even if this shows just one of them is | ||
** <code>gpg --list-secret-keys --with-keygrip</code> to | ** <code>gpg --list-secret-keys --with-keygrip</code> to show the keygrips of your secret keys | ||
== Shell == | == Shell == |
Revision as of 17:42, 21 November 2024
- also known as GNU Privacy Guard or GnuPG
- somewhat convenient way to manage your secrets
Config
~/.gnupg/gpg-agent.conf
default-cache-ttl ...
to lock a key after the given number of seconds if unusedmax-cache-ttl ...
to lock a key after the given number of seconds no matter what
Agent
gpg-connect-agent <<<help
for list of commandsgpg-connect-agent <<<'help ...'
for help on a specific command
gpg-connect-agent <<<reloadagent
to pick up new config- this also forgets cached passphrases
gpg-connect-agent <<<'keyinfo --list'
to check which keys (by keygrip) are currently unlocked, look for a1
- note that all keys with the same passphrase are unlocked even if this shows just one of them is
gpg --list-secret-keys --with-keygrip
to show the keygrips of your secret keys
Shell
gpg --edit-key ...
trust
to make an imported public key usable for encryptionpasswd
to change the passphrase