Elasticsearch 8 Security Tutorial - Store credentials using keystore
Spring Boot 3 Security
Elasticsearch 8 Security Tutorial - Set password Elasticsearch 8 Security Tutorial - Configuring SSL, TLS, and HTTPS Elasticsearch 8 Security Tutorial - Store credentials using keystore
Video
This tutorial is explained in the below Youtube Video.Implementation
In previous tutorial, we created the elasticsearch.yml as follows-# configure https xpack.security.http.ssl.enabled: true xpack.security.http.ssl.keystore.type: PKCS12 xpack.security.http.ssl.keystore.path: elastic-certificates.p12 xpack.security.http.ssl.keystore.password: javainuse xpack.security.http.ssl.client_authentication: required # configure tls xpack.security.transport.ssl.enabled: true xpack.security.transport.ssl.keystore.type: PKCS12 xpack.security.transport.ssl.keystore.path: elastic-certificates.p12 xpack.security.transport.ssl.keystore.password: javainuse xpack.security.transport.ssl.client_authentication: requiredNot all properties mentioned above can be moved to elasticsearch keystore. Only the properties mentioned in the Security settings in Elasticsearch. In the security settings page, the property xpack.security.http.ssl.keystore.password is not mentioned as secure. There is another similar property xpack.security.http.ssl.keystore.secure_password which is mentioned as secure and so can be moved to keystore. The elasticsearch.yml will be as follows -
# configure https xpack.security.http.ssl.enabled: true xpack.security.http.ssl.keystore.type: PKCS12 xpack.security.http.ssl.keystore.path: elastic-certificates.p12 xpack.security.http.ssl.keystore.secure_password: javainuse xpack.security.http.ssl.client_authentication: required # configure tls xpack.security.transport.ssl.enabled: true xpack.security.transport.ssl.keystore.type: PKCS12 xpack.security.transport.ssl.keystore.path: elastic-certificates.p12 xpack.security.transport.ssl.keystore.secure_password: javainuse xpack.security.transport.ssl.client_authentication: requiredOpen the command prompt as an admin. Go to the elasticsearch bin folder and type the following command
elasticsearch.bat