mirror of https://github.com/docker/docs.git
Update protect-access.md (#19062)
* Update protect-access.md fix console highlight * fix: other code highlight
This commit is contained in:
parent
9877e1f342
commit
c435b0e9c2
|
@ -159,7 +159,9 @@ $ echo subjectAltName = DNS:$HOST,IP:10.10.10.20,IP:127.0.0.1 >> extfile.cnf
|
||||||
Set the Docker daemon key's extended usage attributes to be used only for
|
Set the Docker daemon key's extended usage attributes to be used only for
|
||||||
server authentication:
|
server authentication:
|
||||||
|
|
||||||
|
```console
|
||||||
$ echo extendedKeyUsage = serverAuth >> extfile.cnf
|
$ echo extendedKeyUsage = serverAuth >> extfile.cnf
|
||||||
|
```
|
||||||
|
|
||||||
Now, generate the signed certificate:
|
Now, generate the signed certificate:
|
||||||
|
|
||||||
|
@ -199,7 +201,9 @@ $ openssl req -subj '/CN=client' -new -key key.pem -out client.csr
|
||||||
To make the key suitable for client authentication, create a new extensions
|
To make the key suitable for client authentication, create a new extensions
|
||||||
config file:
|
config file:
|
||||||
|
|
||||||
|
```console
|
||||||
$ echo extendedKeyUsage = clientAuth > extfile-client.cnf
|
$ echo extendedKeyUsage = clientAuth > extfile-client.cnf
|
||||||
|
```
|
||||||
|
|
||||||
Now, generate the signed certificate:
|
Now, generate the signed certificate:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue