#expiry
3 one-liners with this tag.
All one-liners tagged expiry
Check the SSL certificate expiration date of a website
$openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -dates
Check whether a certificate expires within the next days
#openssl x509 -in /etc/letsencrypt/live/example.com/cert.pem -noout -checkend $(( 30 * 86400 )) && echo "noch gültig" || echo "läuft bald ab"
Show the expiry date and subject of a certificate file
#openssl x509 -in /etc/letsencrypt/live/example.com/cert.pem -noout -subject -issuer -enddate