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 1ptveW-0002Lb-Cc for pgsql-general@arkaria.postgresql.org; Tue, 02 May 2023 19:27:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ptveV-0004TZ-8w for pgsql-general@arkaria.postgresql.org; Tue, 02 May 2023 19:27:07 +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 1ptveU-0004TQ-V8 for pgsql-general@lists.postgresql.org; Tue, 02 May 2023 19:27:06 +0000 Received: from smtp64.ord1d.emailsrvr.com ([184.106.54.64]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ptveS-000Avc-Az for pgsql-general@lists.postgresql.org; Tue, 02 May 2023 19:27:05 +0000 X-Auth-ID: xof@thebuild.com Received: by smtp1.relay.ord1d.emailsrvr.com (Authenticated sender: xof-AT-thebuild.com) with ESMTPSA id 15A3B400D6; Tue, 2 May 2023 15:27:03 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: Regarding SSL Enablement in PostgreSQL Database on different port From: Christophe Pettus In-Reply-To: Date: Tue, 2 May 2023 12:26:02 -0700 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Tomas Pospisek X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Classification-ID: 96b44f53-1b38-4974-8416-59e02caaed1c-1-1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On May 2, 2023, at 12:15, Tomas Pospisek wrote: >=20 > Oh, I think your idea to use pgbouncer to take care of the SSL = termination is elegant. I don't think me I'd characterize it as a hack = if properly set up. Why do you consider it a hack? It's really only a hack in the sense that pgbouncer is being introduced = just to do TLS. You might be able to do the same thing by running = stunnel on the PostgreSQL host on a different port, and have it forward = to PostgreSQL.=