Skip to content

Instantly share code, notes, and snippets.

@sebw
Created May 3, 2019 08:05
Show Gist options
  • Save sebw/01dfeea2eee56ea7eff7effcfdd77fbb to your computer and use it in GitHub Desktop.
Save sebw/01dfeea2eee56ea7eff7effcfdd77fbb to your computer and use it in GitHub Desktop.
Check date of certificate
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