Use the openssl command to get the expiration date of the SSL certificate.
curl -L https://raw.githubusercontent.com/horatjp/expire-ssl-certificate/master/expire-ssl-certificate -o /usr/local/bin/expire-ssl-certificate
chmod +x /usr/local/bin/expire-ssl-certificate
expire-ssl-certificate google.com
Date Format
expire-ssl-certificate -f +%Y/%m/%d google.com
Day left
expire-ssl-certificate -d google.com