If you think it is a bug report or you have a technical issue, please answer the following questions. For general questions, you can delete these questions.
**Elasticsearch version:**7.17.3
Server OS version: Windows 2019 server
Kibana version (if relevant): 7.17.3
Browser version (if relevant):
Browser OS version (if relevant):
Describe the issue:
Steps to reproduce:
1.
2.
3.
Expected behavior:
Provide configuration:
elasticsearch/config/elasticsearch.yml
elasticsearch/plugins/search-guard-7/sgconfig/sg_config.yml
kibana/config/kibana.yml (if relevant)
Yes, i am referring to the offline TLS tool. which i am running to get the certificates created .
installation directory>/tools/sgtlstool.sh -c ../config/tlsconfig.yml -ca -crt
This is the command given in the website.
I am trying to run the command from the Windows machine please find the screenshot below:
./sgtlstool.bat -c ../config/example.yml -ca -crt
It says system cannot find the path specified
In the last line, the script uses %JAVA_HOME% variable. If that variable is empty or points to a non-existing folder, it will generate the observed error.
Try the following to troubleshoot
Check if JAVA is installed on your Windows system.
If installed, check where %JAVA_HOME% variable points and does the location exists.
echo %JAVA_HOME%
Remember to restart your command line every time when making changes in your system variables.