openssl命令检查域名证书是否到期
echo | openssl s_client -servername xxx.com -connect xxx.com:8991 2>/dev/null | openssl x509 -noout -dates
红色部门替换成要检测的域名和对应的端口即可。
echo | openssl s_client -servername xxx.com -connect xxx.com:8991 2>/dev/null | openssl x509 -noout -dates
红色部门替换成要检测的域名和对应的端口即可。