GPG: Difference between revisions
From YM2149.org
Jump to navigationJump to search
(Created page with "* also known as GNU Privacy Guard or GnuPG * somewhat convenient way to manage your secrets == Config == * <code>~/.gnupg/gpg-agent.conf</code> * <code>default-cache-ttl ...</code> to lock a key after the given number of seconds if unused * <code>max-cache-ttl ...</code> to lock a key after the given number of seconds no matter what == Agent == * <code>gpg-connect-agent <<<help</code> for list of commands ** <code>gpg-connect-agent <<<'help ...'</code> for help on a...") |
No edit summary |
||
Line 23: | Line 23: | ||
* <code>trust</code> to make an imported public key usable for encryption | * <code>trust</code> to make an imported public key usable for encryption | ||
* <code>passwd</code> to change the passphrase | * <code>passwd</code> to change the passphrase | ||
[[Category:Wisdom]] |
Revision as of 17:38, 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 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 match the keygrips shown with your secret keys
Shell
gpg --edit-key ...
trust
to make an imported public key usable for encryptionpasswd
to change the passphrase