Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxyeq-0008Qh-O9 for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Jan 2021 20:46:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kxyeI-0002uO-Hx for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Jan 2021 20:46:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxyeI-0002uH-Bu for pgsql-bugs@lists.postgresql.org; Fri, 08 Jan 2021 20:46:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxyeB-0007cw-1R for pgsql-bugs@lists.postgresql.org; Fri, 08 Jan 2021 20:46:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 108Kk7SK338776; Fri, 8 Jan 2021 15:46:08 -0500 From: Tom Lane 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. In-reply-to: <16815-0fde6075fb21923a@postgresql.org> References: <16815-0fde6075fb21923a@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Fri, 08 Jan 2021 10:29:01 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <338774.1610138767.1@sss.pgh.pa.us> Date: Fri, 08 Jan 2021 15:46:07 -0500 Message-ID: <338775.1610138767@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form 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