Gpg: Difference between revisions
From DWIKI
m (→FAQ) |
|||
Line 84: | Line 84: | ||
Pass looks at .password-store/.gpg-id | Pass looks at .password-store/.gpg-id | ||
you can put the key you want to use there, instead of the user id | you can put the key you want to use there, instead of the user id | ||
==Unusable public key== | |||
Maybe the key expired |
Revision as of 12:12, 28 November 2023
GNU Privacy Guard
Links
- https://www.gnupg.org/ Homepage]
- GPG HOWTO
- GPG Cheat sheet
- GnuPG cheatsheet
- https://www.phildev.net/pgp/gpg_moving_keys.html
- Thunderbird and GPG
Cheatsheet
What is my key ID?
gpg --list-keys you@example.com
The bit after the / in the pub line!
Generate key
gpg --gen-key
Export public key
gpg --export me@example.com > public.key
Export private key
gpg --export-secret-key me@example.com > private.key
Import private key
gpg --import private.key
Renewing subkey
https://sites.lafayette.edu/newquisk/archives/504
Changing expiration date
gpg --edit-key me@example.com gpg> expire
FAQ
gpg: decryption failed: No secret key"
Means you're using gpg2 --use-agent, which is broken
gpg: keyserver receive failed: No name
probably means the key was nog found
gpg: keyserver send failed: No name
Try another keyserver
gpg: WARNING: Your encryption subkey expires soon.
"expire" is the magic command
gpg: Note: secret key XXX expired
gpg --edit-key XXX gpg> expire
There is no assurance this key belongs to the named user
You probably have serveral keys with same uid, find the key with
gpg --list-keys --keyid-format long
Pass looks at .password-store/.gpg-id you can put the key you want to use there, instead of the user id
Unusable public key
Maybe the key expired