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

Commit f6d1504

Browse files
README: Add TLS setup commands (#22)
1 parent 6ddb8e2 commit f6d1504

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

README.md

+19-2
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,29 @@ This is useful for stopping and garbage collecting a job in Nomad immediately.
134134
nomad job stop -purge "<jobname>"
135135
```
136136

137-
#### Count Primary Nodes
137+
#### Count Primary Redis Nodes
138138
```shell
139139
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
140140
```
141141

142-
#### Count Replica Nodes
142+
#### Count Replica Redis Nodes
143143
```shell
144144
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
145145
```
146+
147+
#### Create New Consul CA-Cert and Key
148+
```shell
149+
consul tls ca create
150+
```
151+
152+
#### Create and Sign New Consul Server Cert and Key
153+
In the same directory as the CA Cert:
154+
```shell
155+
consul tls cert create -client -dc "dev-general"
156+
```
157+
158+
#### Create and Sign New Consul Client Cert and Key
159+
In the same directory as the CA Cert:
160+
```shell
161+
consul tls cert create -server -dc "dev-general"
162+
```

0 commit comments

Comments
 (0)