Skip to content

Instantly share code, notes, and snippets.

@labfruits labfruits/check-certs
Last active Feb 16, 2018

Embed
What would you like to do?
periodically chert check based on ssl-cert-check
#!/usr/bin/env bash
SH=$(readlink -f "${0}")
SH_PATH=$(dirname "${SH}")
CERT_DIR="${SH_PATH}/certs/*"
EXP_DAYS=60
SENDER="certs@foo.bar.com"
SEND_TO="root@foo.bar.com"
ssl-cert-check -a -d "${CERT_DIR}/*.crt" -q -x ${EXP_DAYS} -E ${SENDER} -e ${SEND_TO}
exit $?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.