Check when a TLS certificate on a remote server expires.
IntermediateProductionRapid-Fire Commands
Answer
echo | openssl s_client -connect api.example.com:443 -servername api.example.com 2>/dev/null \
| openssl x509 -noout -enddate -subject
openssl x509 -in /etc/ssl/certs/app.pem -noout -checkend 2592000 # expires within 30 days?
More on Rapid-Fire Commands
Which process is listening on port 8080?BeginnerShow the top 10 memory-consuming processes.BeginnerFind files larger than 1 GiB on the root filesystem only.BeginnerShow failed systemd units.BeginnerShow the last 10 reboots and shutdowns.BeginnerShow failed SSH login attempts by source IP.Intermediate