https 経由で証明書の有効期限を確認するワンライナー

$ openssl s_client -connect ホスト名:443 -showcerts  < /dev/null 2> /dev/null | openssl x509 -text | grep Not
            Not Before: May 21 20:55:26 2019 GMT
            Not After : Aug 13 20:32:00 2019 GMT