Skip to content

Latest commit

 

History

History
59 lines (53 loc) · 1.96 KB

gnupg.md

File metadata and controls

59 lines (53 loc) · 1.96 KB

Rotate keys

gpg --edit-key gpg (GnuPG) 2.2.27; Copyright (C) 2021 Free Software Foundation, Inc. ... sec rsa2048/ created: 2019-04-03 expired: 2022-04-06 usage: SC trust: unknown validity: expired ssb rsa2048/ created: 2019-04-03 expired: 2022-04-06 usage: E [ expired] (1). Example Debian Team [email protected]

Inside GnuPG interactive session:

gpg> expire Changing expiration time for the primary key. Please specify how long the key should be valid. 0 = key does not expire = key expires in n days w = key expires in n weeks m = key expires in n months y = key expires in n years Key is valid for? (0) 1y Key expires at Thu 06 Apr 2023 11:55:08 AM HKT Is this correct? (y/N) y sec rsa2048/ created: 2019-04-03 expired: 2023-04-06 usage: SC trust: unknown validity: expired ssb rsa2048/ created: 2019-04-03 expired: 2022-04-06 usage: E [ expired] (1). Example Debian Team [email protected]

gpg> key 1 sec rsa2048/ created: 2019-04-03 expired: 2023-04-06 usage: SC trust: unknown validity: expired ssb* rsa2048/ created: 2019-04-03 expired: 2022-04-06 usage: E [ expired] (1). Example Debian Team [email protected]

gpg> expire Changing expiration time for a subkey. Please specify how long the key should be valid. 0 = key does not expire = key expires in n days w = key expires in n weeks m = key expires in n months y = key expires in n years Key is valid for? (0) 1y Key expires at Thu 06 Apr 2023 11:59:48 AM HKT Is this correct? (y/N) y sec rsa2048/ created: 2019-04-03 expired: 2023-04-06 usage: SC trust: unknown validity: expired ssb* rsa2048/ created: 2019-04-03 expired: 2023-04-06 usage: E [ expired] (1). Example Debian Team [email protected]

gpg> save