5 releases
0.2.1 | Jul 25, 2023 |
---|---|
0.2.0 | Jul 24, 2023 |
0.1.2 | May 30, 2019 |
0.1.1 | May 30, 2019 |
0.1.0 | May 30, 2019 |
#373 in Cryptography
21KB
265 lines
gpg-expire-warner
Prints a warning when GPG keys are about to expire, and optionally helps update their expiration time.
Example
$ exec bash
The following GPG keys will expire soon:
2C7D8465F19C3CDC26237087BFD86BE9948C849A: 5 days
57E0FE20CF9F7BF57769909C0252D762936969DD: -20 days
Usage
-
Build and install using
cargo
:$ cargo install gpg-expire-warner
-
Add something like this to your shell startup script (
.bashrc
or similar):gpg-expire-warner --days 14 \ "2C7D8465F19C3CDC26237087BFD86BE9948C849A" \ "0E70A5BEFD6E37F6EC272A025A5B6A61618EA60D" \ "57E0FE20CF9F7BF57769909C0252D762936969DD"
-
When it's time to extend validity, you can add
--expire <expire>
to the command to automatically invokegpg
to update the expiration time of each key about to expire:$ gpg-expire-warner --days 14 \ "2C7D8465F19C3CDC26237087BFD86BE9948C849A" \ "0E70A5BEFD6E37F6EC272A025A5B6A61618EA60D" \ "57E0FE20CF9F7BF57769909C0252D762936969DD" \ --expire 1y The following GPG keys will expire soon: 2C7D8465F19C3CDC26237087BFD86BE9948C849A: 5 days 57E0FE20CF9F7BF57769909C0252D762936969DD: -20 days Extending validity by 1y for subkeys: 2C7D8465F19C3CDC26237087BFD86BE9948C849A, 57E0FE20CF9F7BF57769909C0252D762936969DD
<expire>
may be any expiration time format recognized bygpg --quick-set-expire
. -
Move on and do better things than worry about your GPG keys expiring.
License
GNU General Public License, version 3 or later.
Dependencies
~1.1–1.7MB
~33K SLoC