Skip to content

Instantly share code, notes, and snippets.

@aursu
Created June 6, 2018 10:49
Show Gist options
  • Save aursu/1514206f7318c61b85a08cc195fc0477 to your computer and use it in GitHub Desktop.
Save aursu/1514206f7318c61b85a08cc195fc0477 to your computer and use it in GitHub Desktop.
Check SSL expiration
echo | openssl s_client -connect gitlab.dev2.gface.de:443 2>/dev/null | sed -n '/-----BEGIN CERTIFICATE-----/,/-----END CERTIFICATE-----/p' | openssl x509 -dates -noout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment