pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alessandro Gherardi <alessandro.gherardi@yahoo.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: scram-sha-256 authentication broken in FIPS mode
Date: Wed, 5 Sep 2018 03:29:31 +0000 (UTC)
Message-ID: <898098721.1290085.1536118171911@mail.yahoo.com> (raw)
References: <898098721.1290085.1536118171911.ref@mail.yahoo.com>

It looks like scram-sha-256 doesn't work when postgres is linked against FIPS-enabled OpenSSL and FIPS mode is turned on.

Specifically, all login attempts fail with an OpenSSL error saying something along the lines of "Low level API call to digest SHA256 forbidden in fips mode".
I think this issue could be solved by refactoring the code in sha2_openssl.c to use the OpenSSL EVP interface (see https://wiki.openssl.org/index.php/EVP_Message_Digests ).
Any thoughts? Is this a known issue?
Thank you in advance.Alessandro

view thread (13+ messages)  latest in thread

Message-ID: <898098721.1290085.1536118171911@mail.yahoo.com>
Permalink:  ../898098721.1290085.1536118171911@mail.yahoo.com/
Also on:    postgresql.org/message-id/898098721.1290085.1536118171911@mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: alessandro.gherardi@yahoo.com
  Subject: Re: scram-sha-256 authentication broken in FIPS mode
  In-Reply-To: <898098721.1290085.1536118171911@mail.yahoo.com>
  References: <898098721.1290085.1536118171911.ref@mail.yahoo.com> <898098721.1290085.1536118171911@mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox