From c435b0e9c261f395dc521b6adb3a4bd2471ca26b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?CHALOPIN=20Cl=C3=A9ment?= Date: Mon, 8 Jan 2024 20:34:15 +0100 Subject: [PATCH] Update protect-access.md (#19062) * Update protect-access.md fix console highlight * fix: other code highlight --- content/engine/security/protect-access.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/engine/security/protect-access.md b/content/engine/security/protect-access.md index 33156e546a..8fb590b17f 100644 --- a/content/engine/security/protect-access.md +++ b/content/engine/security/protect-access.md @@ -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 server authentication: - $ echo extendedKeyUsage = serverAuth >> extfile.cnf +```console +$ echo extendedKeyUsage = serverAuth >> extfile.cnf +``` 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 config file: - $ echo extendedKeyUsage = clientAuth > extfile-client.cnf +```console +$ echo extendedKeyUsage = clientAuth > extfile-client.cnf +``` Now, generate the signed certificate: