diff --git a/ssl/crt-expiry-dates b/ssl/crt-expiry-dates new file mode 100755 index 0000000..885e709 --- /dev/null +++ b/ssl/crt-expiry-dates @@ -0,0 +1,6 @@ +#!/bin/bash + +## Lister opp utløpsdato for alle sertifikater i crt/ + +for x in crt/*.pem ; do echo -ne $x "\t"; date --iso --date "$(openssl x509 -text < $x|grep "Not After"|cut -d: -f2-)" ; done |sort -k 2 +