pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: dzagashev@gmail.com <dzagashev@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: psql connect over ssl load balancer
Date: Mon, 23 May 2022 20:40:34 +0300
Message-ID: <645879a4-1c4b-2d83-3946-8999d51b2029@gmail.com> (raw)
In-Reply-To: <1293485.1653327159@sss.pgh.pa.us>
References: <e6204c31-9d66-4c40-1db0-91444a8aa635@gmail.com>
	<1293485.1653327159@sss.pgh.pa.us>

Ah, thanks.
This will make thing more complex.

On 23.05.2022 20:32, Tom Lane wrote:
> "dzagashev@gmail.com" <dzagashev@gmail.com> writes:
>> I want to secure connections to postgress server usings SSL.
>> My server is deployed on google cloud behind SSL load balancer, which
>> terminates SSL connections (using SSL certificates, issued by google)
>> and forwards decrypted traffic to the posgres server.
>> But standard psql client don't working:
>> $ PGSSLMODE=require psql -h proxy.softvisio.net
> 
> That isn't going to work, because PG wraps the SSL handshake inside
> its own protocol.  You could set up an SSL tunnel and let psql think
> it's making a non-encrypted connection.
> 
> 			regards, tom lane





view thread (3+ messages)

Message-ID: <645879a4-1c4b-2d83-3946-8999d51b2029@gmail.com>
Permalink:  ../645879a4-1c4b-2d83-3946-8999d51b2029@gmail.com/
Also on:    postgresql.org/message-id/645879a4-1c4b-2d83-3946-8999d51b2029@gmail.com

 · 

reply

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-general@postgresql.org
  Cc: dzagashev@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: psql connect over ssl load balancer
  In-Reply-To: <645879a4-1c4b-2d83-3946-8999d51b2029@gmail.com>
  References: <e6204c31-9d66-4c40-1db0-91444a8aa635@gmail.com> <1293485.1653327159@sss.pgh.pa.us> <645879a4-1c4b-2d83-3946-8999d51b2029@gmail.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