Created
May 3, 2019 08:05
-
-
Save sebw/01dfeea2eee56ea7eff7effcfdd77fbb to your computer and use it in GitHub Desktop.
Check date of certificate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ssl-check-date () | |
{ | |
openssl s_client -CApath /etc/ssl/certs/ -connect $1 2>/dev/null | openssl x509 -noout -dates | |
} | |
alias cert-check-date="ssl-check-date $1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment