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 1lUBAA-0000Gy-Vn for pgsql-admin@arkaria.postgresql.org; Wed, 07 Apr 2021 16:36:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lUBA9-0002ti-Td for pgsql-admin@arkaria.postgresql.org; Wed, 07 Apr 2021 16:36:17 +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 1lUBA9-0002tb-MO for pgsql-admin@lists.postgresql.org; Wed, 07 Apr 2021 16:36:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lUBA7-0003UB-LM for pgsql-admin@postgresql.org; Wed, 07 Apr 2021 16:36:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 137GaElT1596783; Wed, 7 Apr 2021 12:36:14 -0400 From: Tom Lane To: lejeczek cc: pgsql-admin@postgresql.org Subject: Re: Replication & TLS encryption - how? In-reply-to: <54a5bf2b-0504-02c0-e5a2-ab24173abcdb@yahoo.co.uk> References: <54a5bf2b-0504-02c0-e5a2-ab24173abcdb.ref@yahoo.co.uk> <54a5bf2b-0504-02c0-e5a2-ab24173abcdb@yahoo.co.uk> Comments: In-reply-to lejeczek message dated "Wed, 07 Apr 2021 17:24:01 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1596781.1617813374.1@sss.pgh.pa.us> Date: Wed, 07 Apr 2021 12:36:14 -0400 Message-ID: <1596782.1617813374@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk lejeczek writes: > A novice here thus please go easy on me as I ask this - I > see docs/howtos all over the place be those either talk of > encryption or replication. I failed to find one which blend > these two concepts together - sure it's possible to pgSQL > replication encrypted, right? Replication connections work exactly like normal sessions for this purpose. Just make sure you set any required parameters in the standby's connection string. regards, tom lane