| 加固项 | 证书管理 |
|---|---|
| 适用平台 | Linux |
| 风险等级 | 中 |
| 判读 | 剩余<30 天提醒,<7 天紧急 |
核查命令
核查命令
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -subject -issuer -dates
find /etc/letsencrypt/live -name fullchain.pem 2>/dev/null | head
for f in /etc/pki/tls/certs/*.pem; do echo "$f"; openssl x509 -noout -enddate -in "$f" 2>/dev/null; done | head -20报告格式:域名 / 颁发者 / 到期日 / 剩余天数 / 自动续期是否开启,五行一表。