Rechercher dans le manuel MySQL
20.5.3 Using Encrypted Connections with X Plugin
This section explains how to configure X Plugin to use encrypted connections. For more background information, see Section 6.3, “Using Encrypted Connections”.
To enable configuring support for encrypted connections, X Plugin
has mysqlx_ssl_
system variables, which can have different values from the
xxx
ssl_
system
variables used with MySQL Server. For example, X Plugin can have
SSL key, certificate, and certificate authority files that differ
from those used for MySQL Server. These variables are described at
Section 20.5.6.2, “X Plugin Options and System Variables”. Similarly,
X Plugin has its own
xxx
Mysqlx_ssl_
status variables that correspond to the MySQL Server
encrypted-connection
xxx
Ssl_
status
variables. See Section 20.5.6.3, “X Plugin Status Variables”.
xxx
At initialization, X Plugin determines its TLS context for encrypted connections as follows:
If all
mysqlx_ssl_
system variables have their default values, X Plugin uses the same TLS context as the MySQL Server main connection interface, which is determined by the values of thexxx
ssl_
system variables.xxx
If any
mysqlx_ssl_
variable has a nondefault value, X Plugin uses the TLS context defined by the values of its own system variables. (This is the case if anyxxx
mysqlx_ssl_
system variable is set to a value different from its default.)xxx
This means that, on a server with X Plugin enabled, you can
choose to have MySQL Protocol and X Protocol connections share
the same encryption configuration by setting only the
ssl_
variables,
or have separate encryption configurations for MySQL Protocol and
X Protocol connections by configuring the
xxx
ssl_
and
xxx
mysqlx_ssl_
variables separately.
xxx
To have MySQL Protocol and X Protocol connections use the same
encryption configuration, set only the
ssl_
system
variables in xxx
my.cnf
:
[mysqld]
ssl_ca=ca.pem
ssl_cert=server-cert.pem
ssl_key=server-key.pem
To configure encryption separately for MySQL Protocol and
X Protocol connections, set both the
ssl_
and
xxx
mysqlx_ssl_
system variables in xxx
my.cnf
:
[mysqld]
ssl_ca=ca1.pem
ssl_cert=server-cert1.pem
ssl_key=server-key1.pem
mysqlx_ssl_ca=ca2.pem
mysqlx_ssl_cert=server-cert2.pem
mysqlx_ssl_key=server-key2.pem
For general information about configuring connection-encryption
support, see Section 6.3.1, “Configuring MySQL to Use Encrypted Connections”. That
discussion is written for MySQL Server, but the parameter names
are similar for X Plugin. (The X Plugin
mysqlx_ssl_
system variable names correspond to the MySQL Server
xxx
ssl_
system
variable names.)
xxx
The tls_version
system variable
that determines the permitted TLS versions for MySQL Protocol
connections also applies to X Protocol connections. The permitted
TLS versions for both types of connections are therefore the same.
Encryption per connection is optional, but a specific user can be
required to use encryption for X Protocol and MySQL Protocol
connections by including an appropriate REQUIRE
clause in the CREATE USER
statement
that creates the user. For details, see
Section 13.7.1.3, “CREATE USER Statement”. Alternatively, to require all users
to use encryption for X Protocol and MySQL Protocol connections,
enable the
require_secure_transport
system
variable. For additional information, see
Configuring Encrypted Connections as Mandatory.
Traduction non disponible
Le manuel MySQL n'est pas encore traduit en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Document créé le 26/06/2006, dernière modification le 26/10/2018
Source du document imprimé : https://www.gaudry.be/mysql-rf-x-plugin-encrypted-connections.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.