curl check ssl certificate expiration


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

Leave a Reply

Your email address will not be published. Required fields are marked *