原英文版地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/ssl-tls.html, 原文档版权归 www.elastic.co 所有
本地英文版地址: ../en/ssl-tls.html

Setting up TLS on a clusteredit

The Elastic Stack security features enable you to encrypt traffic to, from, and within your Elasticsearch cluster. Connections are secured using Transport Layer Security (TLS), which is commonly referred to as "SSL".

Clusters that do not have encryption enabled send all data in plain text including passwords. If the Elasticsearch security features are enabled, unless you have a trial license, you must configure SSL/TLS for internode-communication.

The following steps describe how to enable encryption across the various components of the Elastic Stack. You must perform each of the steps that are applicable to your cluster.

  1. Generate a private key and X.509 certificate for each of your Elasticsearch nodes. See Generating Node Certificates.
  2. Configure each node in the cluster to identify itself using its signed certificate and enable TLS on the transport layer. You can also optionally enable TLS on the HTTP layer. See Encrypting communications between nodes in a cluster and Encrypting HTTP client communications.
  3. Configure the monitoring features to use encrypted connections. See Monitoring and security.
  4. Configure Kibana to encrypt communications between the browser and the Kibana server and to connect to Elasticsearch via HTTPS. See Configuring security in Kibana.
  5. Configure Logstash to use TLS encryption. See Configuring security in Logstash.
  6. Configure Beats to use encrypted connections. For example, see Configure Filebeat to use security features.
  7. Configure the Java transport client to use encrypted communications. See Java Client and security.
  8. Configure Elasticsearch for Apache Hadoop to use secured transport. See Elasticsearch for Apache Hadoop Security.