teleport/examples/etcd/start-etcd.sh
2020-10-07 14:00:02 -03:00

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