Created
April 18, 2014 20:56
-
-
Save invalidusrname/11064054 to your computer and use it in GitHub Desktop.
get expiring certificates
This file contains hidden or 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
grep -r 'ssl_certificate' . | grep -v '#' | grep -v certificate_key | sed "s/.ssl_certificate //" | sed "s/;.//"