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