From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: raf <raf@raf.org>
To: pgsql-admin@postgresql.org
Subject: Re: How to change the TLS certificate/key without restarting the server?
Date: Sat, 9 Nov 2019 10:19:29 +0100
Message-ID: <6585cec4-bbb3-7d91-8799-f289deb58c22@2ndquadrant.com> (raw)
In-Reply-To: <20191017052042.ombzxzwzo7xet47t@raf.org>
References: <20191017052042.ombzxzwzo7xet47t@raf.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, raf@raf.org
Subject: Re: How to change the TLS certificate/key without restarting the server?
In-Reply-To: <6585cec4-bbb3-7d91-8799-f289deb58c22@2ndquadrant.com>
References: <20191017052042.ombzxzwzo7xet47t@raf.org> <6585cec4-bbb3-7d91-8799-f289deb58c22@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox