centos8 SST fails if server-cert uses 1024-bit dhparams

Description

PXC 8.0 RC on centos8 fails this test.

When I use the galera-cert.pem, galera-key.pem, and cacert.pem from the mysql-test/std_data directory, I get the following error from socat

However, when I run with certs generated myself, there is no error.

Also, running on ubuntu with the same certs and same socat version (1.7.3.2) works with no error.

Environment

None

Smart Checklist

Activity

Show:

KennT April 22, 2020 at 12:36 AM

Test-case fixed to use newer SSL certificates which fixes this issue.

KennT March 25, 2020 at 7:30 AM

Note: the galera-* certs were added in 2014/2015.  They were trying to fix a "DH params too small" error, and appended the DH params to the cert.  Six years later and the 512-bit DH params are being rejected.

I noticed that ubuntu uses socat 1.7.3.2 (openssl 1.1.1c).  Centos8 uses socat 1.7.3.2 (openssl 1.1.1c FIPS)

So I don't think this is an urgent issue.  The question is what do we want to do these rare certs.  We can detect if certs have the dhparams embedded and just error out if the sizes are too small, probably good as a precaution anyway.

KennT March 25, 2020 at 5:00 AM

The fix is to check the certs to see if they contain the dhparams and if the dhparams are >= 2048 bits.  If not, we have to supply/generate the dhparams file ourselves.

KennT March 20, 2020 at 5:45 AM

The test uses galera-cert.pem and galera-key.pem.  socat(v1.7.3.2) on Centos8 returns an error (note: using socat v.1.7.3.2 on ubuntu does not return an error).

Using the galera docs to generate the certs, this error does not appear.  So it seems this error is particular to these certs.

Fix is to use the server-cert.pem and server-key.pem for the tests.

KennT March 18, 2020 at 4:04 AM

Things that fix this:

(1) Change the certs to use server-key.pem and server-cert.pem

(2) Add the dhparam parameter to the socat call.

Done

Details

Assignee

Reporter

Time tracking

6h 20m logged

Fix versions

Affects versions

Priority

Smart Checklist

Created March 18, 2020 at 4:04 AM
Updated March 6, 2024 at 9:42 PM
Resolved April 29, 2020 at 1:15 PM