1,keytool导入elasticsearch的证书。
keytool -importcert -file http_ca.crt -alias esca -cacerts -storepass changeit -noprompt
2,修改cerebro配置文件/etc/cerebro/application.conf
,增加elasticsearch用户名信息。
hosts = [
{
host = "https://10.0.0.1:9200"
name = "elasticsearch"
auth = {
username = "elastic"
password = "123456"
}
}
]
3,启动cerebro。
本文链接地址: https://danteng.org/how-to-connect-to-elasticsearch-with-username-password-and-https-by-cerebro/