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 1ntC2r-0001xg-9P for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 17:40:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntC2q-0004s9-0t for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 17:40:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntC2p-0004s0-Jz for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 17:40:39 +0000 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ntC2n-0007ZN-3H for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 17:40:39 +0000 Received: by mail-lj1-x229.google.com with SMTP id i23so18086976ljb.4 for ; Mon, 23 May 2022 10:40:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=AnIXSniTS0TCImg4/U037ydLzeoA2N5ogsuO/YnATtk=; b=mwyqJ7GUpmInK/WBD4Xh18GGm79auDpq3kG888A8kcgJmoCMaDQ22IYD5Zyftb+uh0 xwMEJRt9WRMRei80pqcHBVziBdZepPK0B5nNg5rAMeKolLJkkCosrjs8++mojgtgSvXI 7f9Kr+fNr8vrzCGo766UiKEUDRPS8YAOxEfzgzaczOLrOESzf7jTQNxjy2J3Z44l+ATx KDVUgTkYRBtVoG3xcNy3xY5xzvEA0rtvQAJ7huG9AQB6ScJ5meGFuT6AbCNuBfJ6qUCr jbanwIT0gCqL+8SRSq7Gv7Kqt2NXoU05tVfLl5LAOwl74HuD5CTVVxa5OoqTJ2Z4Tk3n SYMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=AnIXSniTS0TCImg4/U037ydLzeoA2N5ogsuO/YnATtk=; b=zcvYbied7lB4Rl1dhtFCgYJf26/tl5o1FWHufvQzwNB6g/GoL0pkGuw8R/JY/Ap3pn 8dFdO0Gv4/e5eMgmnpzSSHAmMmYYH+CPoZeoTBVZbKkMijqLN1BJCQtUMeoc6eB7+Fjx o9jOd13bPEOGQxIjdimRaBBXQNaT2tVgraJXnCJn252Wd70uhbgq/nezVHZzqL3yxSNw oHGdwNOJzbl2B0S60R9+xWhgmD2NVdgjIXhC/n8I9neI/7c5d/O46lhsfQTv777XtRgD hVAu4ukpPGPCScmHEpQ6So7DZjPCfvBNpHLSvvHWY6f9DOXpNnpa/WyyeVhoQzPh2jgR Hb8A== X-Gm-Message-State: AOAM5337iCe7SpnfVL6lNZidt1EVpzrmcg3YMtY1Z+nStCEvQwU3hSf5 3sW1AzBaoCy7mZqARst0vQ== X-Google-Smtp-Source: ABdhPJyUhC5tIiuLhccOmpAq1C4WLWK3HEA89mO5yx57//5Jyblo3V1a/wS9QcAK212Of8lfkYQ2bA== X-Received: by 2002:a2e:81a:0:b0:250:a331:d0b1 with SMTP id 26-20020a2e081a000000b00250a331d0b1mr13516434lji.363.1653327635920; Mon, 23 May 2022 10:40:35 -0700 (PDT) Received: from [192.168.0.101] ([46.219.208.85]) by smtp.gmail.com with ESMTPSA id r26-20020ac24d1a000000b00477be83c446sm2078316lfi.299.2022.05.23.10.40.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 May 2022 10:40:35 -0700 (PDT) Message-ID: <645879a4-1c4b-2d83-3946-8999d51b2029@gmail.com> Date: Mon, 23 May 2022 20:40:34 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: psql connect over ssl load balancer Content-Language: en-US To: Tom Lane Cc: pgsql-general@lists.postgresql.org References: <1293485.1653327159@sss.pgh.pa.us> From: "dzagashev@gmail.com" In-Reply-To: <1293485.1653327159@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Ah, thanks. This will make thing more complex. On 23.05.2022 20:32, Tom Lane wrote: > "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