but i am getting this error in elasticsearch deployment
"Caused by: org.elasticsearch.ElasticsearchException: searchguard.ssl.transport.keystore_filepath or searchguard.ssl.transport.pemkey_filepath must be set if transport ssl is reqested.",
but if i see my search guard setting all certs are generated and pointed to correct location
######## Start Search Guard Demo Configuration ########
# WARNING: revise all the lines below before you go into production
searchguard.ssl.transport.pemcert_filepath: esnode.pem
searchguard.ssl.transport.pemkey_filepath: esnode-key.pem
searchguard.ssl.transport.pemtrustedcas_filepath: root-ca.pem
searchguard.ssl.transport.enforce_hostname_verification: false
searchguard.ssl.http.enabled: true
searchguard.ssl.http.pemcert_filepath: esnode.pem
searchguard.ssl.http.pemkey_filepath: esnode-key.pem
searchguard.ssl.http.pemtrustedcas_filepath: root-ca.pem
searchguard.allow_unsafe_democertificates: true
searchguard.allow_default_init_sgindex: true
searchguard.authcz.admin_dn:
- CN=kirk,OU=client,O=client,L=test, C=de
searchguard.audit.type: internal_elasticsearch
searchguard.enable_snapshot_restore_privilege: true
searchguard.check_snapshot_restore_write_privileges: true
searchguard.restapi.roles_enabled: ["SGS_ALL_ACCESS"]
cluster.routing.allocation.disk.threshold_enabled: false
node.max_local_storage_nodes: 3
xpack.security.enabled: false
######## End Search Guard Demo Configuration ########
Hi. Can you please post the error stack trace? Or better post all Elasticsearch log beginning from the start.
Also, show me what files you have in Elasticsearch config folder. You should have the following files
$ ls -lh elasticsearch/config/
total 112
-rw-r----- 1 user staff 3.9K May 4 13:05 elasticsearch.yml
-rw-r--r-- 1 user staff 1.7K May 4 13:05 esnode-key.pem
-rw-r--r-- 1 user staff 1.7K May 4 13:05 esnode.pem
-rw-r----- 1 user staff 2.2K Mar 26 07:28 jvm.options
-rw-r--r-- 1 user staff 1.7K May 4 13:05 kirk-key.pem
-rw-r--r-- 1 user staff 1.6K May 4 13:05 kirk.pem
-rw-r----- 1 user staff 17K Mar 26 07:36 log4j2.properties
-rw-r----- 1 user staff 473B Mar 26 07:36 role_mapping.yml
-rw-r----- 1 user staff 197B Mar 26 07:36 roles.yml
-rw-r--r-- 1 user staff 1.4K May 4 13:05 root-ca.pem
-rw-r----- 1 user staff 0B Mar 26 07:36 users
-rw-r----- 1 user staff 0B Mar 26 07:36 users_roles
Did you configure any file in elasticsearch/plugins/search-guard-7/sgconfig/ folder? If yes, send the changes you applied.