diff options
author | Julius Goryavsky <julius.goryavsky@mariadb.com> | 2021-09-23 16:14:54 +0200 |
---|---|---|
committer | Julius Goryavsky <julius.goryavsky@mariadb.com> | 2021-09-24 11:31:27 +0200 |
commit | 77b11965220e249b8fe1dc178e0aff4a8a58db2a (patch) | |
tree | 626c757bcb5905ea4371f20b17ba183f07659ea1 /mysys/md5.c | |
parent | 467011bcac3b3f42ae6f21dde8d88e78708b21d1 (diff) | |
download | mariadb-git-bb-10.2-MDEV-26360-galera.tar.gz |
MDEV-26360: Using hostnames breaks certificate validationbb-10.2-MDEV-26360-galera
Fixed flaws with overly strict or, conversely,
overly soft verification of certificates in some
scenarios:
1. Removed the check that the 'commonname' (CN) in the
certificate matches the 'localhost' value on the side
of the joiner node, which was performed earlier, even
if the address was received by the script only as an
argument (out of the exchange via the Galera protocol) -
since for the joining node this argument always contains
its own local address, not the address of the remote host,
so it is always treated as 'localhost', which is not
necessarily true (outside of mtr testing);
2. Removed checking the domain name or IP-address of the
peer node in the encrypt=2 mode;
3. Fixed checking of compliance of certificates when
rsync SST is used;
4. Added the ability to specify CA not only as a file,
but also as a path to the directory where the certificates
are stored. To do this, the user just needs to specify the
path to this directory as the value ssl-ca or tca parameter,
ending with the '/' character.
Diffstat (limited to 'mysys/md5.c')
0 files changed, 0 insertions, 0 deletions