Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sqys6-00EWj8-KC for pgsql-admin@arkaria.postgresql.org; Wed, 18 Sep 2024 17:53:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sqys4-00DT35-75 for pgsql-admin@arkaria.postgresql.org; Wed, 18 Sep 2024 17:53:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sqys3-00DT1z-0M for pgsql-admin@lists.postgresql.org; Wed, 18 Sep 2024 17:53:43 +0000 Received: from mout-u-107.mailbox.org ([2001:67c:2050:101:465::107]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sqys0-001rbu-DC for pgsql-admin@lists.postgresql.org; Wed, 18 Sep 2024 17:53:42 +0000 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4X85qM6Mfjz9sjc; Wed, 18 Sep 2024 19:53:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ewie.name; s=MBO0001; t=1726682016; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=60IGH/BXMnM0Qg0tDPEuuqKR0o5LrmP8y6+TG8Ckr6g=; b=TEhnTmP3X0F2s/1OV0n/LlieWIG/8QfmfT+XCfEVL3k2DezAdOeHGCtlXpvhe7/z6znolj WdZu6exwV6iXpyKRIkJFUC+m9bE1RdVSO73KWw3NIDagFQf1bwEQSvg9UxT0UPPqg7Jadk yLmyTcwDr2mFSyDahphdJP5fla4/MzijbzWAOyhWtWCfaHf3gdhzQNRWSo7hFd2tLBe8qP FFzfyUAXvKgnZfnugijRKsnyrpP6lJBLr/bKCJNMVtLwa8o91GsAQOYYkT/BGBYq8n0U6I 9ekCqkhOXawJTWzSOKlLvNhgV2+Ma6ZOJOOBlb5eQYSK1a1RzYEOpXVXT2a1qg== Date: Wed, 18 Sep 2024 19:53:33 +0200 From: Erik Wienhold To: tiamoh m Cc: pgsql-admin@lists.postgresql.org Subject: Re: SSL Connection String Message-ID: <7357c221-0d49-422e-83d6-fda984822408@ewie.name> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4X85qM6Mfjz9sjc List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-09-18 17:08 +0200, tiamoh m wrote: > I wish to find out the connection string to only establish ssl connection > after it is set up. Use sslmode=require (or verify-ca/verify-full if necessary) for that: https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS -- Erik