Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am fulopm on github.
  • I am fulopm (https://keybase.io/fulopm) on keybase.
  • I have a public key whose fingerprint is 36D3 0BC1 88F2 1DE3 3B66 F428 C345 DA48 D9A0 BDB5

To claim this, I am signing this object:

@fulopm
fulopm / check_keystore.sh
Last active January 29, 2022 21:25
Nagios plugin to check expiration of certs in a keystore
#!/bin/bash
# Reworked by fulopm with keystore password, and fixed handling of certificate chains
# Official source by jooperik: https://gist.github.com/jooperik/b97ddcddfc237ec2d7b7358eb97f3b1c
KEYTOOL="/usr/lib/jvm/java-11-amazon-corretto/bin/keytool"
THRESHOLD_IN_DAYS=8
KEYSTORE=""
PASSWORD=""