Re: psql connect over ssl load balancer

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "dzagashev(at)gmail(dot)com" <dzagashev(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: psql connect over ssl load balancer
Date: 2022-05-23 17:32:39
Message-ID: 1293485.1653327159@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"dzagashev(at)gmail(dot)com" <dzagashev(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Durumdara 2022-05-23 17:35:59 Can I start Update row in After Insert trigger function?
Previous Message Tom Lane 2022-05-23 17:29:18 Re: list tablespaces named in custom format dump