Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iTMuE-00061R-SG for pgsql-admin@arkaria.postgresql.org; Sat, 09 Nov 2019 09:19:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iTMuD-0004UI-Lv for pgsql-admin@arkaria.postgresql.org; Sat, 09 Nov 2019 09:19:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iTMuC-0004UB-Ef for pgsql-admin@lists.postgresql.org; Sat, 09 Nov 2019 09:19:41 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iTMu5-0008Ef-8E for pgsql-admin@postgresql.org; Sat, 09 Nov 2019 09:19:39 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 022B9218BB; Sat, 9 Nov 2019 04:19:32 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Sat, 09 Nov 2019 04:19:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=05+j/uKAv9NW8mebZPZ/N1jBpkdUNDCQurjHGNa+T zg=; b=sm9HeYuaAmwfM31DYYtfibkoucyKG6cWsAH9aRCgXOzG2mVRct9T11zJd RwXu+YDlTZ389YMge0ca/MIov0x5sKriC8QerucfWyaJ5+SKHSmbKzEzfgChE7nd jrBS9ON9n51mDQ3aH8fnajR69+rugrgEXjHVeYEF/sA0+K2j1glq/N4btAb6Bi57 DkS9wsN/QTAo+0S1uoPPDqBrvJsXNNEAGV8wKq4mxb20Dc5zBb7gg2xTaR1mQmXg YWmB4BvZNIyvCdAat3EuGRFlhzjZtR7xkRinb3RwIE75IIr30VoVBoDODmWm63OI dzZQof52whCpBat8TaIRwV84WCGtg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddvfedgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhfhokffffgggjggtgfesth ejredttdefjeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgv rhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhmqeenucffohhmrg hinhepvdhnughquhgrughrrghnthdrtghomhdpphhoshhtghhrvghsqhhlrdhorhhgnecu kfhppeelfedrvdegvddrudegjedrjeelnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvg htvghrrdgvihhsvghnthhrrghuthesvdhnughquhgrughrrghnthdrtghomhenucevlhhu shhtvghrufhiiigvpedt X-ME-Proxy: Received: from april.pezone.net (p5df2934f.dip0.t-ipconnect.de [93.242.147.79]) by mail.messagingengine.com (Postfix) with ESMTPA id D7CE13060057; Sat, 9 Nov 2019 04:19:30 -0500 (EST) Subject: Re: How to change the TLS certificate/key without restarting the server? To: raf , pgsql-admin@postgresql.org References: <20191017052042.ombzxzwzo7xet47t@raf.org> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <6585cec4-bbb3-7d91-8799-f289deb58c22@2ndquadrant.com> Date: Sat, 9 Nov 2019 10:19:29 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20191017052042.ombzxzwzo7xet47t@raf.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-10-17 07:20, raf wrote: > https://www.postgresql.org/docs/12/ssl-tcp.html says: > > "Using a passphrase also disables the ability to > change the server's SSL configuration without a > server restart." This is actually no longer true since PostgreSQL 11. I have committed a fix. > How is key TLS key changed without a server restart? > Is replacing the server.crt/server.key files enough > or is there more to it? You need to issue a reload, for example using SIGHUP. That is supported since PostgreSQL 10. > And will existing connections continue to use the old > key until they disconnect? yes -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services