Difference between revisions of "Gpg --list-keys"

From wikieduonline
Jump to navigation Jump to search
Line 16: Line 16:
  
  
Key with new [[expiration]] date:
+
Key with new [[expiration]] date (<code>[[gpg --quick-set-expire]]</code>):
 
  gpg --list-keys
 
  gpg --list-keys
 
  pub  rsa4096 2018-11-20 [SC] [expires: 2024-11-20]
 
  pub  rsa4096 2018-11-20 [SC] [expires: 2024-11-20]

Revision as of 09:09, 9 November 2022

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: