1 @echo off 2 3 rem Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one 4 rem or more contributor license agreements. Licensed under the Elastic License; 5 rem you may not use this file except in compliance with the Elastic License. 6 7 setlocal enabledelayedexpansion 8 setlocal enableextensions 9 10 set ES_MAIN_CLASS=org.elasticsearch.xpack.security.cli.CertificateTool 11 set ES_ADDITIONAL_SOURCES=x-pack-env;x-pack-security-env 12 set ES_ADDITIONAL_CLASSPATH_DIRECTORIES=lib/tools/security-cli 13 call "%~dp0elasticsearch-cli.bat" ^ 14 %%* ^ 15 || goto exit 16 17 endlocal 18 endlocal 19 :exit 20 exit /b %ERRORLEVEL%