Update protect-access.md (#19062)

* Update protect-access.md

fix console highlight

* fix: other code highlight
This commit is contained in:
CHALOPIN Clément 2024-01-08 20:34:15 +01:00 committed by GitHub
parent 9877e1f342
commit c435b0e9c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -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:
$ echo extendedKeyUsage = serverAuth >> extfile.cnf ```console
$ 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:
$ echo extendedKeyUsage = clientAuth > extfile-client.cnf ```console
$ echo extendedKeyUsage = clientAuth > extfile-client.cnf
```
Now, generate the signed certificate: Now, generate the signed certificate: