gpg --list-keys
Jump to navigation
Jump to search
Examples[edit]
gpg --list-keys /root/.gnupg/pubring.kbx ------------------------ pub rsa2048 2020-03-20 [SC] 1234ABC8856227E7647FA0B2D65ABCDEFG12345 uid [ unknown] [email protected] (dev-key) <[email protected] > sub rsa2048 2020-03-20 [E] pub rsa4096 2018-11-20 [SC] [expires: 2022-11-20] 1234ABC8856227E7647FA0B2D65ABCDEFG12345 uid [ unknown] Your Name <[email protected] > sub rsa4096 2018-11-20 [E] [expires: 2022-11-20]
Key with new expiration date (gpg --quick-set-expire
):
gpg --list-keys pub rsa4096 2018-11-20 [SC] [expires: 2024-11-20] 1234ABC8856227E7647FA0B2D65ABCDEFG12345 uid [ unknown] Your Name <[email protected] > sub rsa4096 2018-11-20 [E] [expires: 2022-11-20]
pub rsa2048 2020-03-20 [SC] 222222221111111555555TTTTTT44345345345345435 uid [ unknown] your name 2 <[email protected]> sub rsa2048 2020-03-20 [E]
gpg --list-keys gpg: directory '/root/.gnupg' created gpg: keybox '/root/.gnupg/pubring.kbx' created gpg: /root/.gnupg/trustdb.gpg: trustdb created
Related[edit]
See also[edit]
gpg, --batch | --generate-key | --full-generate-key | --recv-keys | --export | --encrypt | --import | --list-keys | --list-secret-key | --gen-key | --armor | --dearmor | --send-keys | --search-keys | --quick-set-expire | --keyserver | --delete-keys | --full-generate-key | --armor --export | gpg --help
Advertising: