Skip to content

Instantly share code, notes, and snippets.

@ryanvgates
Created October 13, 2021 19:17
Show Gist options
  • Save ryanvgates/15b435c20f664b204a965361e0380929 to your computer and use it in GitHub Desktop.
Save ryanvgates/15b435c20f664b204a965361e0380929 to your computer and use it in GitHub Desktop.
ElasticSearch Upgrade Solution
cat secret_password_file | sudo -u elasticsearch -g elasticsearch /usr/share/elasticsearch/bin/elasticsearch-keystore add --stdin xpack.security.http.ssl.keystore.secure_password
cat secret_password_file | sudo -u elasticsearch -g elasticsearch /usr/share/elasticsearch/bin/elasticsearch-keystore add --stdin xpack.security.http.ssl.truststore.secure_password
cat secret_password_file | sudo -u elasticsearch -g elasticsearch /usr/share/elasticsearch/bin/elasticsearch-keystore add --stdin xpack.security.transport.ssl.keystore.secure_password
cat secret_password_file | sudo -u elasticsearch -g elasticsearch /usr/share/elasticsearch/bin/elasticsearch-keystore add --stdin xpack.security.transport.ssl.truststore.secure_password
cat secret_password_file | sudo -u elasticsearch -g elasticsearch /usr/share/elasticsearch/bin/elasticsearch-keystore add --stdin bootstrap.password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment