On Jan 24 2019, Marcus Hüwe <suse-tux@gmx.de> wrote:
On 2019-01-24 11:41:54 +0100, Ralf Becker wrote:
How can I check if a projects signkey is still valid or needs extension.
Is there an osc or gpg command I can use to find that out to write a Nagios check to warn me, before the key expires and users complain.
You could do something like
osc signkey <project> | gpg --show-keys
and then extract the expiration date. (Maybe there's a more clever way to directly read the expiration date...)
You can use --with-colons, this makes the output easily machine parsed. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org