Security bash Advanced

SSL Certificate Inspector

Check expiry and details of any SSL certificate from the command line.

bash
#!/bin/bash
DOMAIN=$1
echo | openssl s_client -servername $DOMAIN -connect $DOMAIN:443 2>/dev/null \
  | openssl x509 -noout -dates -subject

Prerequisites

  • openssl
  • bash

Pro Tips

  • → Alert when expiry < 30 days in a cron job.

Was this module useful?

Share your experience — it helps the team improve.

Leave Feedback

Commercial Licensing

Acquire a production access token or template license for enterprise deployment.

Module Info

Language
bash
Level
Advanced
Read time
3 min
Published
Jan 2025
License
Commercial License

Newsletter

New modules every week, directly to your inbox.