From 9deb73b54884198fb5cac777ec231e4d346e4dd3 Mon Sep 17 00:00:00 2001 From: Jeremy Dubois Date: Fri, 6 Nov 2020 10:53:00 +0100 Subject: [PATCH] cert-expirations.sh => certificates names can contain "@" in it --- cert-expirations.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' \