Photo by Thalia Ruiz on Unsplash is a shell script which can be used to notify group of people over Slack before TLS certificates expire. Script can check tls certificates in two sources. tls:// and vault://

VAULT_ADDR, VAULT_TOKEN and SLACK_WEBHOOK must be set before execute it.

tls://[2m]                        # threshold is 2 months
tls://[30d]               # --> threshold is 30 days.
vault://secret/data/certs/dragon/tls.crt            # tls certificate in hashicorp vault no threshold specified, default threshold value will be considered, which is 30 days.

You can find in my GH repo.

$ ./ check.txt

You can find how-to in the repo.