DOMAIN=tgis.tw
date --date="$(echo | openssl s_client -showcerts -servername ${DOMAIN} -connect ${DOMAIN}:443 2>/dev/null | openssl x509 -inform pem -noout -enddate | awk -F '=' '{print $NF}' )" +%s
文章短網址: https://slanla.com/__v706xo
DOMAIN=tgis.tw
date --date="$(echo | openssl s_client -showcerts -servername ${DOMAIN} -connect ${DOMAIN}:443 2>/dev/null | openssl x509 -inform pem -noout -enddate | awk -F '=' '{print $NF}' )" +%s