mirror of
https://github.com/gravitational/teleport
synced 2024-10-21 17:53:28 +00:00
434775692a
This reverts commit f06e9204d1
.
23 lines
630 B
Bash
Executable file
23 lines
630 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Example of how etcd must be started in the full TLS mode, i.e.
|
|
# - server cert is checked by clients
|
|
# - client cert is checked by the server
|
|
#
|
|
# NOTE: this file is also used to run etcd tests.
|
|
#
|
|
|
|
HERE=$(readlink -f $0)
|
|
cd "$(dirname $HERE)" || exit
|
|
|
|
mkdir -p data
|
|
etcd --name teleportstorage \
|
|
--data-dir data/etcd \
|
|
--initial-cluster-state new \
|
|
--cert-file certs/server-cert.pem \
|
|
--key-file certs/server-key.pem \
|
|
--trusted-ca-file certs/ca-cert.pem \
|
|
--advertise-client-urls=https://127.0.0.1:2379 \
|
|
--listen-client-urls=https://127.0.0.1:2379 \
|
|
--client-cert-auth
|