Skip to content

Commit

Permalink
Update example names
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Vasquez <[email protected]>
  • Loading branch information
rafvasq committed Nov 24, 2023
1 parent 7603c54 commit 641a889
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/configuration/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ Use the following command to create a SAN key/cert:

```shell
openssl req -x509 -newkey rsa:4096 -sha256 -days 3560 -nodes \
-keyout example.key \
-out example.crt \
-keyout server.key \
-out server.crt \
-subj "/CN=${NAMESPACE}" \
-extensions san \
-config openssl-san.config
Expand All @@ -49,9 +49,9 @@ metadata:
name: ${SECRET_NAME}
type: kubernetes.io/tls
stringData:
tls.crt: $(cat example.crt)
tls.key: $(cat example.key)
ca.crt: $(cat example.crt)
tls.crt: $(cat server.crt)
tls.key: $(cat server.key)
ca.crt: $(cat server.crt)
EOF
```

Expand All @@ -60,7 +60,7 @@ EOF
Alternatively, you can create this secret imperatively using:

```
kubectl create secret tls ${SECRET_NAME} --cert "example.crt" --key "example.key"
kubectl create secret tls ${SECRET_NAME} --cert "server.crt" --key "server.key"
```

## Creating TLS Certificates using CertManager
Expand Down

0 comments on commit 641a889

Please sign in to comment.