查看证书过期时间

echo | openssl s_client -servername api.liaozhiwei.com -connect api.liaozhiwei.com:443 2>/dev/null | openssl x509 -noout -dates