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

From wikieduonline
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  
 +
== Examples ==
 
  gpg --list-keys
 
  gpg --list-keys
  /root/.gnupg/pubring.kbx
+
  /root/[[.gnupg/pubring.kbx]]
 
  ------------------------
 
  ------------------------
 
  pub  [[rsa2048]] 2020-03-20 [SC]
 
  pub  [[rsa2048]] 2020-03-20 [SC]
Line 10: Line 11:
 
   
 
   
 
  pub  [[rsa4096]] 2018-11-20 [SC] [expires: 2022-11-20]
 
  pub  [[rsa4096]] 2018-11-20 [SC] [expires: 2022-11-20]
       CFFE11138445272917A0BB53FF4E495C646AB43F
+
       1234ABC8856227E7647FA0B2D65ABCDEFG12345
  uid          [ unknown] Rour Name <[email protected] >
+
  uid          [ unknown] Your Name <[email protected] >
 
  sub  rsa4096 2018-11-20 [E] [expires: 2022-11-20]
 
  sub  rsa4096 2018-11-20 [E] [expires: 2022-11-20]
  
  
 +
Key with new [[expiration]] date (<code>[[gpg --quick-set-expire]]</code>):
 +
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 ==
 +
* [[Public key]]
 +
* [[keyboxd]]
 +
 +
== See also ==
 +
* {{gpg}}
  
{{gpg}}
+
[[Category:GPG]]

Latest revision as of 16:58, 20 September 2024

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]

Advertising: