zabbix 监控openssl证书过期时间

生产环境如果域名绑定的ssl证书过期的话,整个入口都无法访问,会严重影响业务,所以,我们需要对ssl证书的过期时间进行监控。 获取证书过期时间 可以通过如下两个命令获取: 1、curl nohup curl -Ivs https://$1 --connect-timeout 10 2>&1 >>test.log expdate=$(grep "expire date" test.log |awk
相关文章
相关标签/搜索