added SAN to cert create command (#9295)
This commit is contained in:
parent
f6af3b460a
commit
1930b1467d
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ Anytime we reference a TLS secret, we mean a PEM-encoded X.509, RSA (2048) secre
|
|||
You can generate a self-signed certificate and private key with:
|
||||
|
||||
```bash
|
||||
$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ${KEY_FILE} -out ${CERT_FILE} -subj "/CN=${HOST}/O=${HOST}"
|
||||
$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ${KEY_FILE} -out ${CERT_FILE} -subj "/CN=${HOST}/O=${HOST}" -addext "subjectAltName = DNS:${HOST}"
|
||||
```
|
||||
|
||||
Then create the secret in the cluster via:
|
||||
|
|
Loading…
Reference in a new issue