Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Commit

Permalink
README: Add TLS setup commands (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
beautifulentropy authored Jan 21, 2022
1 parent 6ddb8e2 commit f6d1504
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,29 @@ This is useful for stopping and garbage collecting a job in Nomad immediately.
nomad job stop -purge "<jobname>"
```

#### Count Primary Nodes
#### Count Primary Redis Nodes
```shell
redis-cli -p <tls-port> --tls --cert ./example/tls/redis/cert.pem --key ./example/tls/redis/key.pem --cacert ./example/tls/ca-cert.pem --user replication-user --pass <redis-password> cluster nodes | grep master | wc -l
```

#### Count Replica Nodes
#### Count Replica Redis Nodes
```shell
redis-cli -p <tls-port> --tls --cert ./example/tls/redis/cert.pem --key ./example/tls/redis/key.pem --cacert ./example/tls/ca-cert.pem --user replication-user --pass <redis-password> cluster nodes | grep slave | wc -l
```

#### Create New Consul CA-Cert and Key
```shell
consul tls ca create
```

#### Create and Sign New Consul Server Cert and Key
In the same directory as the CA Cert:
```shell
consul tls cert create -client -dc "dev-general"
```

#### Create and Sign New Consul Client Cert and Key
In the same directory as the CA Cert:
```shell
consul tls cert create -server -dc "dev-general"
```

0 comments on commit f6d1504

Please sign in to comment.