Skip to content

Instantly share code, notes, and snippets.

Last active March 15, 2022 10:29
What would you like to do?
Health check SSL (restart to take new SSL cert)
[[ "$(date '+%Y-%m-%d')" < "$(date '+%Y-%m-%d' -d "$(openssl s_client -connect localhost:465 2>/dev/null </dev/null | openssl x509 -noout -dates | awk -F= '/notAfter/ { print $2 " - 1 month" }')" )" ]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment