Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOnM3-0000jF-D0 for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jan 2017 15:19:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cOnM2-0000nM-8U for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jan 2017 15:19:54 +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 1cOnM1-0000lP-GA for pgsql-hackers@postgresql.org; Wed, 04 Jan 2017 15:19:53 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOnLy-0003Cc-W6 for pgsql-hackers@postgresql.org; Wed, 04 Jan 2017 15:19:52 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 86AAF5F794; Wed, 4 Jan 2017 10:18:50 -0500 (EST) Date: Wed, 4 Jan 2017 10:18:50 -0500 From: Stephen Frost To: Andreas Karlsson Cc: Magnus Hagander , Tom Lane , Peter Eisentraut , Michael Paquier , Michael Banck , Peter Geoghegan , PostgreSQL-development Subject: Re: [PATCH] Reload SSL certificates on SIGHUP Message-ID: <20170104151850.GQ18360@tamriel.snowman.net> References: <16e282a4-2573-f629-09e8-e6b0ac615890@2ndquadrant.com> <29982.1483412575@sss.pgh.pa.us> <23913.1483458895@sss.pgh.pa.us> <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+bngJNRfHg+qX2/U" Content-Disposition: inline In-Reply-To: <1254e97b-a65a-5a63-e938-810507a16d71@proxel.se> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 10:18:38 up 179 days, 16:42, 37 users, load average: 0.11, 0.13, 0.17 User-Agent: Mutt/1.5.21 (2010-09-15) 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 --+bngJNRfHg+qX2/U Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Andreas Karlsson (andreas@proxel.se) wrote: > On 01/04/2017 04:14 PM, Stephen Frost wrote: > >* Andreas Karlsson (andreas@proxel.se) wrote: > >>A possible solution might be to only add the error throwing hook > >>when loading certificates during SIGHUP (and at Windows) and to work > >>as before on startup. Would that be an acceptable solution? I could > >>write a patch for this if people are interested. > > > >I'm not sure I see how that's a solution..? Wouldn't that mean that a > >SIGHUP with an encrypted key would result in a failure? > > > >The solution, at least in my view, seems to be to say "sorry, we can't > >reload the SSL stuff if you used a passphrase to unlock the key on > >startup, you will have to perform a restart if you want the SSL bits to > >be changed." >=20 > Sorry, I was very unclear. I meant refusing the reload the SSL > context if there is a pass phrase, but that the rest of the config > will be reloaded just fine. This will lead to some log spam on every > SIGHUP for people with a pass phrase but should otherwise work as > before. Right, that sounds like it'd work for me, at least. Thanks! Stephen --+bngJNRfHg+qX2/U Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYbRJaAAoJEO1sijiDR2RVebsQAIkllrmTD/UK6rdIx4D8yg56 9XLufUbrEMlOMQTUNSUoBCE2eCE+Mdq8mcmLbQpJo4liowFhMgdOTIbNksfkebKh usj0uHxCQ32tf6oOJ2ahzHD1ETobDl9vkQx/cmbXPiq1Yb8KifS92ICxldn+bo26 gaoVvsfUc8sKRJ5l4g6WB7lWbCcLzZuM44AAAAJa3H3G6B+afkshLIMBogFbHcpM Lp5ro/3rrc9nN0HRWfMZnKKG2n1txhpll9L/L/WmSO088qFL6N8oaHrvk/3sDPr1 s8DSPYL4+2SEC3rNTk5pGq/UnhEsgkCNlElQpvedFOga3WMEJ1hbr4Ueg7IowB1T JaoM8dqOwZmQ8mx57Uj+MAm7qXSZxCEZ8XEYZTMpRpdasFWgH8GMMUrrvJ0jq914 1Rm2ndQ4ixblPAk4qntXujNbhuP0yvQKMOmHI/gq8qPwVvaoS71fqohG3wZB2NYA mfQRohrpoPppeP1uRbjEbI9URzBuf21wbRtZs67ZmJ1oHIqWPFZnxKhuP6LAIgYW N1GFgS2/jG7edHLfxwEzOTD8an4qoduStWJzfgZaClsJzkmYSOvGB7qb8kouBN1u 2jQXCqheBVNABHzgP21pLHpD6+AHqvvvUM2hcKhJPE6faYLMfLO2YSjMR3H0Zt/J mZRoLAUoz5SEUTPnSYag =naA0 -----END PGP SIGNATURE----- --+bngJNRfHg+qX2/U--