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 }}'; ```