Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPBK7-0003XI-9U for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Jan 2017 16:55:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cPBK6-0007Ca-Sx for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Jan 2017 16:55:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cPBK6-0007CP-4Z for pgsql-hackers@postgresql.org; Thu, 05 Jan 2017 16:55:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cPBK3-0008V5-Gm for pgsql-hackers@postgresql.org; Thu, 05 Jan 2017 16:55:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v05GtGsX005360; Thu, 5 Jan 2017 11:55:16 -0500 From: Tom Lane To: Robert Haas cc: Stephen Frost , Peter Eisentraut , Andreas Karlsson , Magnus Hagander , Michael Paquier , Michael Banck , Peter Geoghegan , PostgreSQL-development Subject: Re: [PATCH] Reload SSL certificates on SIGHUP In-reply-to: References: <20995.1483541230@sss.pgh.pa.us> <7fca80da-0274-3f36-eb25-d53f940c1977@proxel.se> <20170104151429.GP18360@tamriel.snowman.net> <1254e97b-a65a-5a63-e938-810507a16d71@proxel.se> <22644.1483543579@sss.pgh.pa.us> <23703.1483545440@sss.pgh.pa.us> <97c1bad2-ac72-052a-0525-1d115f094f15@2ndquadrant.com> <20170104164958.GR18360@tamriel.snowman.net> Comments: In-reply-to Robert Haas message dated "Thu, 05 Jan 2017 11:15:24 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5358.1483635316.1@sss.pgh.pa.us> Date: Thu, 05 Jan 2017 11:55:16 -0500 Message-ID: <5359.1483635316@sss.pgh.pa.us> X-Pg-Spam-Score: -5.1 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > Of course, if there's some sort of commonly-used library out there for > this sort of thing where we can just link against it and call whatever > APIs it exposes, that might be a better alternative, or something to > support in addition, but I don't really know whether there's any > standardization in this area. I was wondering if we could make use of ssh-agent. But it seems to want to hold the private key itself, so that you have to communicate with it every time you need an operation done with the key. I'm not sure what the performance of that is like, and I am sure that the code would look a whole lot different from the path where we hold the key locally. It might be workable if OpenSSL already incorporates library routines for talking to ssh-agent, but I haven't looked. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers