summary refs log tree commit diff stats
path: root/system/services/taskserver/certs/check_expire
blob: 39f32912cac6841279e029128e559d4d6f86f209 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env nix
#! nix shell nixpkgs#openssl nixpkgs#dash --command dash

cd "$(dirname "$0")" || {
    echo "No dir name?!"
    exit 1
}

for cert in *.cert.pem; do
    echo "$cert"
    openssl x509 -noout -in "$cert" -dates
    echo
done