gpg --list-keys

From wikieduonline
Revision as of 09:09, 9 November 2022 by Welcome (talk | contribs)
Jump to navigation Jump to search

Examples

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]


gpg --list-keys
gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created

Related

See also

Advertising: