Skip to content

Elastic Search install in Windows Server with SSL certs

Last updated on July 6, 2023

To install Elasticsearch on a Windows Server with SSL certificates, you can follow these steps:

  1. Download and install Java Development Kit (JDK):
  2. Download Elasticsearch:
  3. Extract the Elasticsearch ZIP file:
    • Extract the downloaded ZIP file to a directory of your choice, such as C:\elasticsearch.
  4. Configure Elasticsearch for SSL:
    • Open the elasticsearch.yml configuration file located in the config directory of the Elasticsearch installation.
    • Uncomment and modify the following settings:
      • Set network.host to the IP address or hostname of your server.
      • Set http.port to the desired HTTP port number (e.g., 9200).
      • Set http.enabled to false to disable HTTP access.
      • Set xpack.security.enabled to true to enable X-Pack security features.
      • Configure SSL settings, such as xpack.security.transport.ssl.enabled, xpack.security.transport.ssl.keystore.path, xpack.security.transport.ssl.truststore.path, etc., according to your SSL certificate configuration.
  5. Copy your SSL certificate files:
    • Copy your SSL certificate files (e.g., keystore, truststore) to a location on your server.
  6. Start Elasticsearch:
    • Open a command prompt or PowerShell in the Elasticsearch directory (e.g., C:\elasticsearch).
    • Run the following command to start Elasticsearch .\bin\elasticsearch.bat
  7. Verify Elasticsearch:
    • Open a web browser and navigate to https://localhost:9200 (replace localhost with your server IP or hostname).
    • If Elasticsearch is running and SSL is configured correctly, you should see JSON information about the Elasticsearch cluster.

By following these steps, you can install Elasticsearch on a Windows Server and configure SSL certificates for secure communication. Make sure to adjust the SSL configuration settings and paths based on your SSL certificate setup.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments