← Learn
Safe
for f in ./certs/*.pem; do openssl x509 -in "$f" -noout -subject -enddate; done

cross-platform · bash · Nightmare

Iterates over local certificate files and prints each subject and expiry date. The loop quotes its variable properly, so even a filename containing spaces is handled as one argument rather than being split into commands.

Think you can spot these under time pressure?

Start Training

More Web Security