Bash: SSL x509 check enddate / expiration time of certificate with openssl

โ€”

by

in

You can check the endtime/end time/notafter/expiration date of a site by doing this:

openssl s_client -connect google.com:443 2>/dev/null 

-edit- this will probably only check the first cert, please verify.