pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: frank.buettner@mdc-berlin.de
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16815: Unable to use the X448 an X25519 elliptic curves.
Date: Fri, 08 Jan 2021 15:46:07 -0500
Message-ID: <338775.1610138767@sss.pgh.pa.us> (raw)
In-Reply-To: <16815-0fde6075fb21923a@postgresql.org>
References: <16815-0fde6075fb21923a@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> The openssl version that comes with CentOS8 will support both curves.
> And using the curves with the apache for example will work, so it is not an
> OS related problem.
> SSLOpenSSLConfCmd Groups "X448:X25519:secp521r1:secp384r1" will work.
> But try the same curves on postgresql 13 will fail.
> ssl_ecdh_curve  = 'X448' or
> ssl_ecdh_curve  = 'X25519'

According to the fine manual, the allowed values for ssl_ecdh_curve
on a given system can be found out with "openssl ecparam -list_curves".
When I do that on a RHEL8 or CentOS8 system, I get

$ openssl ecparam -list_curves
  secp224r1 : NIST/SECG curve over a 224 bit prime field
  secp256k1 : SECG curve over a 256 bit prime field
  secp384r1 : NIST/SECG curve over a 384 bit prime field
  secp521r1 : NIST/SECG curve over a 521 bit prime field
  prime256v1: X9.62/SECG curve over a 256 bit prime field

I have no idea what X448 and X25519 are, but they don't seem
to be known in a default Red Hat installation.  It's entirely
possible that the Apache config command you show above is
"working" because it ignores unknown entries.  (But I know zip
about Apache, so I might be wrong.)

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <338775.1610138767@sss.pgh.pa.us>
Permalink:  ../338775.1610138767@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/338775.1610138767@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, frank.buettner@mdc-berlin.de, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16815: Unable to use the X448 an X25519 elliptic curves.
  In-Reply-To: <338775.1610138767@sss.pgh.pa.us>

* 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