Skip to content

Commit 7146845

Browse files
committed
[DOCS] Split long lines in Docker TLS getting-started snippet
and add warning for Windows users not using PowerShell (e.g. `cmd.exe`) to remove the `\` character and join lines. Also fix trailing whitespace character in link back to `docker.asciidoc`. Relates elastic/x-pack-elasticsearch#2999 Original commit: elastic/x-pack-elasticsearch@6b4a3dc
1 parent 3a9e7b5 commit 7146845

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/en/security/securing-communications/configuring-tls-docker.asciidoc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ https://www.elastic.co/subscriptions[available subscriptions].
1515
[float]
1616
==== Prepare the environment
1717

18-
<<docker,Install {es} with Docker>>.
18+
<<docker,Install {es} with Docker>>.
1919

2020
Inside a new, empty, directory create the following **four files**:
2121

@@ -178,8 +178,14 @@ curl --cacert certs/ca/ca.crt -u elastic:PleaseChangeMe https://localhost:9200
178178
all users:
179179
+
180180
--
181+
WARNING: Windows users not running PowerShell will need to remove `\` and join lines in the snippet below.
181182
["source","sh"]
182183
----
183-
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"
184+
docker exec es01 /bin/bash -c "bin/x-pack/setup-passwords \
185+
auto --batch \
186+
-Expack.ssl.certificate=x-pack/certificates/es01/es01.crt \
187+
-Expack.ssl.certificate_authorities=x-pack/certificates/ca/ca.crt \
188+
-Expack.ssl.key=x-pack/certificates/es01/es01.key \
189+
--url https://localhost:9200"
184190
----
185191
--

0 commit comments

Comments
 (0)