From bb938c10d58e108967c9ce42e95ccfbddbccf835 Mon Sep 17 00:00:00 2001 From: Dmitry Makarov <4341162+dimiboi@users.noreply.github.com> Date: Tue, 29 Sep 2020 01:28:50 +0300 Subject: [PATCH] Fixed missing forward slash The subject requirement won't work otherwise. --- docs/mysql/topics/client_auth.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/mysql/topics/client_auth.md b/docs/mysql/topics/client_auth.md index 357bf24..7f344c4 100644 --- a/docs/mysql/topics/client_auth.md +++ b/docs/mysql/topics/client_auth.md @@ -1,6 +1,6 @@ MySQL requires client certificates on a per-user basis. The requirement can be configured using `CREATE USER` or `ALTER USER` statements. When set, MySQL will reject connections from these users if they don't present a valid certificate signed by your CA. ```sql -mysql> CREATE USER 'myuser'@'myhost' REQUIRE SUBJECT 'CN={{ client_name }}'; -mysql> ALTER USER 'myuser'@'myhost' REQUIRE SUBJECT 'CN={{ client_name }}'; +mysql> CREATE USER 'myuser'@'myhost' REQUIRE SUBJECT '/CN={{ client_name }}'; +mysql> ALTER USER 'myuser'@'myhost' REQUIRE SUBJECT '/CN={{ client_name }}'; ```