Skip to content

Instantly share code, notes, and snippets.

@invalidusrname
Created April 18, 2014 20:56
Show Gist options
  • Save invalidusrname/11064054 to your computer and use it in GitHub Desktop.
Save invalidusrname/11064054 to your computer and use it in GitHub Desktop.
get expiring certificates
for cert in `find /etc/ssl/certs | grep crt | sort`; do basename $cert; openssl x509 -noout -in $cert; openssl x509 -noout -in $cert -dates ; echo ''; done
@invalidusrname
Copy link
Author

grep -r 'ssl_certificate' . | grep -v '#' | grep -v certificate_key | sed "s/.ssl_certificate //" | sed "s/;.//"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment