Last active
August 29, 2023 19:51
-
-
Save jralvarezc/05d59aebbf67b2190576d2e9fe78eb88 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check expiration dates | |
$ gpg --list-keys | |
/home/ralvarez/.gnupg/pubring.kbx | |
--------------------------------- | |
pub rsa2048 2003-12-10 [SC] | |
3660BC4AB81D3472B1FFF0ADC8C71A9539BB323D | |
uid [ultimate] Rafael Alvarez <[email protected]> | |
uid [ultimate] Rafael Alvarez <[email protected]> | |
uid [ultimate] Rafael Alvarez <[email protected]> | |
sub rsa2048 2003-12-10 [E] | |
pub rsa4096 2019-08-15 [SC] [expires: 2035-08-11] | |
83CA2C614E54BF1DE73E83971B528E4C722DCF04 | |
uid [ unknown] Rafael Alvarez <[email protected]> | |
uid [ unknown] Rafael Alvarez <[email protected]> | |
uid [ unknown] Rafael Alvarez <[email protected]> | |
sub rsa4096 2019-08-15 [E] [expires: 2035-08-11] | |
# Add expiration date | |
$ gpg --edit-key 3660BC4AB81D3472B1FFF0ADC8C71A9539BB323D | |
gpg (GnuPG) 2.2.17; Copyright (C) 2019 Free Software Foundation, Inc. | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. | |
Secret key is available. | |
sec rsa2048/C8C71A9539BB323D | |
created: 2003-12-10 expires: never usage: SC | |
trust: ultimate validity: ultimate | |
ssb rsa2048/CBC9D484C540DEF5 | |
created: 2003-12-10 expires: never usage: E | |
[ultimate] (1). Rafael Alvarez <[email protected]> | |
[ultimate] (2) Rafael Alvarez <[email protected]> | |
[ultimate] (3) Rafael Alvarez <[email protected]> | |
gpg> expire | |
Changing expiration time for the primary key. | |
Please specify how long the key should be valid. | |
0 = key does not expire | |
<n> = key expires in n days | |
<n>w = key expires in n weeks | |
<n>m = key expires in n months | |
<n>y = key expires in n years | |
Key is valid for? (0) 15y | |
Key expires at Mon 14 Aug 2034 12:49:58 AM -05 | |
Is this correct? (y/N) y | |
sec rsa2048/C8C71A9539BB323D | |
created: 2003-12-10 expires: 2034-08-14 usage: SC | |
trust: ultimate validity: ultimate | |
ssb rsa2048/CBC9D484C540DEF5 | |
created: 2003-12-10 expires: never usage: E | |
[ultimate] (1). Rafael Alvarez <[email protected]> | |
[ultimate] (2) Rafael Alvarez <[email protected]> | |
[ultimate] (3) Rafael Alvarez <[email protected]> | |
gpg> save | |
# Verify new expiration date | |
$ gpg --list-keys | |
gpg: checking the trustdb | |
gpg: marginals needed: 3 completes needed: 1 trust model: pgp | |
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u | |
gpg: next trustdb check due at 2034-08-14 | |
/home/ralvarez/.gnupg/pubring.kbx | |
--------------------------------- | |
pub rsa2048 2003-12-10 [SC] [expires: 2034-08-14] | |
3660BC4AB81D3472B1FFF0ADC8C71A9539BB323D | |
uid [ultimate] Rafael Alvarez <[email protected]> | |
uid [ultimate] Rafael Alvarez <[email protected]> | |
uid [ultimate] Rafael Alvarez <[email protected]> | |
sub rsa2048 2003-12-10 [E] | |
pub rsa4096 2019-08-15 [SC] [expires: 2035-08-11] | |
83CA2C614E54BF1DE73E83971B528E4C722DCF04 | |
uid [ unknown] Rafael Alvarez <[email protected]> | |
uid [ unknown] Rafael Alvarez <[email protected]> | |
uid [ unknown] Rafael Alvarez <[email protected]> | |
sub rsa4096 2019-08-15 [E] [expires: 2035-08-11] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment