版本:elasticsearch 7.3.1
步骤:
elasticsearch-certutil ca
elasticsearch-certutil cert --ca elastic-stack-ca.p12
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12 # 步骤一中文件路径(默认从config文件夹中读取)
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12# 步骤一中文件路径(默认从config文件夹中读取)
xpack.security.transport.filter.allow: "192.168.*"
elasticsearch-setup-passwords interactive
elasticsearch.username: 步骤4中账号
elasticsearch.password: 步骤4中设置的密码