#!/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