diff --git a/cert-expirations.sh b/cert-expirations.sh index 7ae444f..7325ed7 100644 --- a/cert-expirations.sh +++ b/cert-expirations.sh @@ -16,7 +16,7 @@ echo "" echo "Client certificates:" grep "Not After" -r /etc/shellpki/certs/ \ - | sed -e "s/^.*certs\/\([-.a-z0-9]*\).*After\ :\ \(.*\).*GMT$/\2\1X/" \ + | sed -e "s/^.*certs\/\([-.@a-z0-9]*\).*After\ :\ \(.*\).*GMT$/\2\1X/" \ | sed -e "s/^\(.*\)\ \(20..\)\ \(.*\)$/- \2 \1 \3/" \ | tr "X" "\n" \ | sed '/^$/d' \