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 1lCUF9-0001ii-DV for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Feb 2021 21:20:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lCUEb-00022U-RF for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Feb 2021 21:19:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCUEb-00022M-KF for pgsql-hackers@lists.postgresql.org; Wed, 17 Feb 2021 21:19:45 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCUEX-0000Vx-Qt for pgsql-hackers@lists.postgresql.org; Wed, 17 Feb 2021 21:19:44 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id A562E2468C90 for ; Wed, 17 Feb 2021 22:19:36 +0100 (CET) Received: from s630.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 86BFF2E276CE; Wed, 17 Feb 2021 22:19:36 +0100 (CET) Received: from s473.loopia.se (unknown [172.22.191.5]) by s630.loopia.se (Postfix) with ESMTP id 7411C13B9339; Wed, 17 Feb 2021 22:19:36 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s498.loopia.se ([172.22.191.5]) by s473.loopia.se (s473.loopia.se [172.22.190.13]) (amavisd-new, port 10024) with LMTP id w5KCrPdCB1Cs; Wed, 17 Feb 2021 22:19:36 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from [192.168.72.43] (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s498.loopia.se (Postfix) with ESMTPSA id DEDEA4893D6; Wed, 17 Feb 2021 22:19:35 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: Support for NSS as a libpq TLS backend From: Daniel Gustafsson In-Reply-To: <4b4e3a27cc56921d2acba2c25823fd2fc325b842.camel@vmware.com> Date: Wed, 17 Feb 2021 22:19:35 +0100 Cc: "thomas.munro@gmail.com" , "pgsql-hackers@lists.postgresql.org" , "sfrost@snowman.net" Content-Transfer-Encoding: quoted-printable Message-Id: <06EFBB38-C0D2-440F-95CB-9B3AE4F97E82@yesql.se> References: <3D2C67F8-7EE6-4534-BE8A-BDD828562672@yesql.se> <383EE7EE-ADEE-4C48-8E7B-28B361E5EA3B@yesql.se> <054312F2-4D32-4ED9-A6A9-CA05221858CF@yesql.se> <4b4e3a27cc56921d2acba2c25823fd2fc325b842.camel@vmware.com> To: Jacob Champion X-Mailer: Apple Mail (2.3445.104.17) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On 17 Feb 2021, at 02:02, Jacob Champion wrote: > On Mon, 2020-07-20 at 15:35 +0200, Daniel Gustafsson wrote: >> This version adds support for sslinfo on NSS for most the functions. >=20 > I've poked around to see what can be done about the > unimplemented ssl_client_dn_field/ssl_issuer_field functions. There's = a > nasty soup of specs to wade around in, and it's not really clear to me > which ones take precedence since they're mostly centered on LDAP. Thanks for digging! > we could hardcode the list of OpenSSL-compatible names, and just > translate manually in sslinfo. Then leave the rest up to = dotted-decimal=20 > OIDs. >=20 > Would that be desirable, or do we want this interface to be something > more generally compatible with (some as-of-yet unspecified) spec? Regardless of approach taken I think this sounds like something that = should be tackled in a follow-up patch if the NSS patch is merged - and probably = only as a follow-up to a patch that adds test coverage to sslinfo. =46rom the = sounds of things me may not be able to guarantee stability across OpenSSL versions = as it is right now? -- Daniel Gustafsson https://vmware.com/