ssl - 如何在 monit 中检查具有有效 HTTPS 证书的 URL?

标签 ssl ssl-certificate monit

我有以下配置 -

check host qbox_logstash_1
  with address blah.mysite.com
  group qbox
  if failed
    host blah.mysite.com
    port 443
    type TCPSSL
    protocol https
    http headers [ Authorization: Basic dXJiYW5sYWiYW5sBlaHToHideThisAuthMjM= ]
  then alert

它只是连接,从不检查域是否有错误的证书。为什么 monit 不检查证书?

最佳答案

您需要包含 certificate valid 指令:

if failed
  ...
  certificate valid > 10 days
then alert

请参阅此处的文档:https://mmonit.com/monit/documentation/monit.html#CONNECTION-TESTING

关于ssl - 如何在 monit 中检查具有有效 HTTPS 证书的 URL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31333950/

相关文章:

asp.net-mvc - 无法建立 SSL/TLS 安全通道的信任关系 : The remote certificate is invalid according to the validation procedure

azure - 将 azure 网站的 www 记录映射到 SSL

couchdb - Ubuntu 14.04 上没有 CouchDB 的 pid 文件

java - Android/Java SSL、 keystore 、证书引用请求

postgresql - DataGrip Postgres SSL 错误 : sun. security.validator.ValidatorException

ssl - 使用 Wget 忽略 SSL 证书错误

SSL 对所有主机都失败。 (SSL证书问题: self signed certificate in certificate chain)

linux - 在Linux中监控进程开始运行时

mysql - 在 Monit 中使用 --login-path 检查脚本给出错误 1045 (28000)

php - 在 Ubuntu 上下载 https ://repo. packagist.org 证书问题时出现 curl 错误 60?