cert-expirations.sh => certificates names can contain "@" in it

This commit is contained in:
Jérémy Dubois 2020-11-06 10:53:00 +01:00
parent ff7737e733
commit 9deb73b548
1 changed files with 1 additions and 1 deletions

View File

@ -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' \