pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: dzagashev@gmail.com <dzagashev@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: psql connect over ssl load balancer
Date: Mon, 23 May 2022 20:28:15 +0300
Message-ID: <e6204c31-9d66-4c40-1db0-91444a8aa635@gmail.com> (raw)

Hi.

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.

I can connect without problems from nodejs using TLS socket.

But standard psql client don't working:

$ PGSSLMODE=require psql -h proxy.softvisio.net

psql: error: connection to server at "proxy.softvisio.net" 
(34.149.158.159), port 5432 failed: server closed the connection 
unexpectedly
         This probably means the server terminated abnormally
         before or while processing the request.


Seems, that psql will not work withour private keys? But I am not sure.

Could somebody help me to understand, how I can use it?





view thread (3+ messages)  latest in thread

Message-ID: <e6204c31-9d66-4c40-1db0-91444a8aa635@gmail.com>
Permalink:  ../e6204c31-9d66-4c40-1db0-91444a8aa635@gmail.com/
Also on:    postgresql.org/message-id/e6204c31-9d66-4c40-1db0-91444a8aa635@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
  Subject: Re: psql connect over ssl load balancer
  In-Reply-To: <e6204c31-9d66-4c40-1db0-91444a8aa635@gmail.com>
  References: <e6204c31-9d66-4c40-1db0-91444a8aa635@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