curl --insecure -vvI https://www.srv24x7.com 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }'
curl check ssl certificate expiration
Leave a reply
curl --insecure -vvI https://www.srv24x7.com 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }'