curl
Get SSL certificate details with curl command
curl –insecure -v https://www.google.com 2>&1 | awk ‘BEGIN { cert=0 } /^* SSL connection/ { cert=1 } /^*/ { if (cert) print }’
curl –insecure -v https://www.google.com 2>&1 | awk ‘BEGIN { cert=0 } /^* SSL connection/ { cert=1 } /^*/ { if (cert) print }’