Re: SSL Connection String

From: Erik Wienhold <ewie(at)ewie(dot)name>
To: tiamoh m <tiamohm25(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: SSL Connection String
Date: 2024-09-18 17:53:33
Message-ID: 7357c221-0d49-422e-83d6-fda984822408@ewie.name
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message tiamoh m 2024-09-18 21:44:25 Re: SSL Connection String
Previous Message Scott Ribe 2024-09-18 15:18:24 Re: Postgres - SSL connection using only root CA