diff --git a/docs/en/security/securing-communications/configuring-tls-docker.asciidoc b/docs/en/security/securing-communications/configuring-tls-docker.asciidoc index f6309c44b5d..bd2b687673f 100644 --- a/docs/en/security/securing-communications/configuring-tls-docker.asciidoc +++ b/docs/en/security/securing-communications/configuring-tls-docker.asciidoc @@ -15,7 +15,7 @@ https://www.elastic.co/subscriptions[available subscriptions]. [float] ==== Prepare the environment -<>. +<>. Inside a new, empty, directory create the following **four files**: @@ -178,8 +178,14 @@ curl --cacert certs/ca/ca.crt -u elastic:PleaseChangeMe https://localhost:9200 all users: + -- +WARNING: Windows users not running PowerShell will need to remove `\` and join lines in the snippet below. ["source","sh"] ---- -docker exec es01 /bin/bash -c "bin/x-pack/setup-passwords auto --batch -Expack.ssl.certificate=x-pack/certificates/es01/es01.crt -Expack.ssl.certificate_authorities=x-pack/certificates/ca/ca.crt -Expack.ssl.key=x-pack/certificates/es01/es01.key --url https://localhost:9200" +docker exec es01 /bin/bash -c "bin/x-pack/setup-passwords \ +auto --batch \ +-Expack.ssl.certificate=x-pack/certificates/es01/es01.crt \ +-Expack.ssl.certificate_authorities=x-pack/certificates/ca/ca.crt \ +-Expack.ssl.key=x-pack/certificates/es01/es01.key \ +--url https://localhost:9200" ---- --