From 7ebf649652cd812675a86f638e9f6939d40f02aa Mon Sep 17 00:00:00 2001 From: einarr Date: Fri, 8 Aug 2014 21:45:26 +0000 Subject: [PATCH] =?UTF-8?q?Script=20for=20=C3=A5=20liste=20utl=C3=B8psdato?= =?UTF-8?q?=20til=20alle=20sertifikater=20i=20crt/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ssl/crt-expiry-dates | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 ssl/crt-expiry-dates 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 +