Browse Source

cert-expirations.sh => certificates names can contain upper case characters

dev
Jérémy Dubois 2 months ago
parent
commit
fb22db8dac
  1. 2
      cert-expirations.sh

2
cert-expirations.sh

@ -17,7 +17,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-zA-Z0-9]*\).*After\ :\ \(.*\).*GMT$/\2\1X/" \
| sed -e "s/^\(.*\)\ \(20..\)\ \(.*\)$/- \2 \1 \3/" \
| tr "X" "\n" \
| sed '/^$/d' \

Loading…
Cancel
Save