| 查看命令 | openssl x509 -noout -serial -dates |
|---|---|
| 注意 | 不同 CA 的序列号可能重复,跨 CA 比较没有意义 |
| 配合信息 | 记录指纹与 notAfter 一起比对更稳妥 |
多节点序列号比对
多节点序列号比对
for h in node1.example.com node2.example.com; do
echo -n "$h: "
echo | openssl s_client -connect $h:443 -servername example.com 2>/dev/null | openssl x509 -noout -serial -dates
done把序列号与指纹写入发布记录,回滚与审计时可以精确定位到某次签发。