Mailinglist Archive: opensuse-buildservice (66 mails)

< Previous Next >
[opensuse-buildservice] Re: Check signkey is (still) valid
  • From: Andreas Schwab <schwab@xxxxxxx>
  • Date: Thu, 24 Jan 2019 14:52:20 +0100
  • Message-id: <mvm4l9y5fjf.fsf@suse.de>
On Jan 24 2019, Marcus Hüwe <suse-tux@xxxxxx> 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@xxxxxxx
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@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >