↧
Answer by Cpt.Whale for get certificate expiry date in unix time (or any...
-enddate outputs in rfc_822 standard by default, so GNU date command can read it if you cut notAfter= characters:$ openssl x509 -enddate -noout -in cert.pem | cut -c10- | date +%s -f -1868282453Newer...
View Articleget certificate expiry date in unix time (or any other numeric) format
This is needed to compare to current time and see how much is left.I investigated the matters and it seems people are inventing scripts getting date/time in text from the openssl output, converting it...
View Article