Re: Allow tests to pass in OpenSSL FIPS mode

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Allow tests to pass in OpenSSL FIPS mode
Date: 2023-10-06 13:44:40
Message-ID: 389e7bd8-dad2-5430-f571-e5ebdc775d2c@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 05.10.23 22:04, Tom Lane wrote:
> On the way to testing this, I discovered that we have a usability
> regression with recent OpenSSL releases. The Fedora 35 installation
> I used to use for testing FIPS-mode behavior would produce errors like

> +ERROR: could not compute MD5 hash: disabled for FIPS

> In the shiny new Fedora 38 installation I just set up for the
> same purpose, I'm seeing

> +ERROR: could not compute MD5 hash: unsupported

This makes sense, because the older OpenSSL works basically like

if (FIPS_mode()) {
specific_error();
}

while the new one has all crypto methods in modules, and if you load the
fips module, then some crypto methods just don't exist.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2023-10-06 13:46:24 Re: Allow tests to pass in OpenSSL FIPS mode
Previous Message Peter Eisentraut 2023-10-06 13:13:57 Re: ALTER COLUMN ... SET EXPRESSION to alter stored generated column's expression