How to require SSL for all remote users

前端 未结 3 1326
一向
一向 2020-12-29 20:52

Given a MySQL system with multiple remote users (users of the form \'joecool\'@\'192.168.1.2\'); is there a SQL statement I can use to REQUIRE SSL

3条回答
  •  不思量自难忘°
    2020-12-29 21:28

    You can configure mysqld with require_secure_transport.

    [mysqld]
    ...
    ssl-ca = ...
    ssl-cert = ...
    ssl-key = ...
    ...
    require-secure-transport = ON
    

    This capability supplements per-account SSL requirements, which take precedence. For example, if an account is defined with REQUIRE SSL, enabling require_secure_transport does not make it possible to use the account to connect using a Unix socket file.

提交回复
热议问题