• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

elastic-agent安装报错“Fleet Server - Error - x509: certificate signed by unknown authority

武飞扬头像
fanruitian
帮助1

elasticssearch版本8.4.3

根据官网的提示https://www.elastic.co/guide/en/fleet/8.4/fleet-troubleshooting.html#agent-enrollment-certs

出现这种问题需要增加参数--insecure

To fix this problem, pass the --insecure flag along with the enroll or install command. 

./elastic-agent install   --fleet-server-es=https://192.168.0.180:9200   --fleet-server-service-token=AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE2NjU0NjAxNTE0NjM6U3pRNk5DLTZSSi15eFdlLWxtd2JlQQ   --fleet-server-policy=fleet-server-policy --insecure

经过试验,并未生效,依旧报同样的错误

需要增加https ca证书,如果试验rpm安装默认路径为/etc/elasticsearch/certs/http_ca.crt

./elastic-agent install   --fleet-server-es=https://192.168.0.180:9200   --fleet-server-service-token=AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE2NjU0NjAxNTE0NjM6U3pRNk5DLTZSSi15eFdlLWxtd2JlQQ   --fleet-server-policy=fleet-server-policy --fleet-server-es-ca=/etc/elasticsearch/certs/http_ca.crt
 

 测试成功!

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhgbgfge
系列文章
更多 icon
同类精品
更多 icon
继续加载