ssl-cert-check
ssl-cert-check copied to clipboard
sorting by cert expiration days
Hello.
Great job, but it will be very useful to print sites from file with sorting of expiration days. Is it possible to implement? Where there is near 200 sites there is a problem to read whole listing :)
Regards.
EDIT: Sorry :) bash ssl-cert-check.sh -f sitelist |sort -k6 works fine :)
sort -k6 doesn't handle the header. You also want a numeric sort - 30 days is greater than 4.
I use this wrapper as a cron job, which sorts by expiration & hostname.
It runs daily, produces a report weekly - or sooner if a certificate is near expiration. However, it is not pure bash - it does use Perl. (The -f is 'ssl_certs', in the same directory as the script.)
@tlhackque -- nice workaround! Anyway you stick that in your github account and add some documentation? Would love to be able to link to it.