Skip to content

Commit

Permalink
wip: [readme] deploy tls cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
tsonglew committed Sep 5, 2023
1 parent 3dbc00c commit c1bb44d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions assets/etcd/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Deploy a single node etcd cluster with SSL/TLS enabled

## Generate SSL/TLS certificates

### Download cfssl

```bash
mkdir ~/bin
curl -s -L -o ~/bin/cfssl https://pkg.cfssl.org/R1.2/cfssl_linux-amd64
curl -s -L -o ~/bin/cfssljson https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64
chmod +x ~/bin/{cfssl,cfssljson}
```

### Generate CA

```bash
export PATH=$PATH:~/bin
mkdir ~/cfssl
cd ~/cfssl
cfssl print-defaults config > ca-config.json
cfssl print-defaults csr > ca-csr.json
```

# Refer

https://blog.try-except.com/technology/docker_etcd_cluster_ssl.html

0 comments on commit c1bb44d

Please sign in to comment.