Re: SSL Connection String - Mailing list pgsql-admin

From Erik Wienhold
Subject Re: SSL Connection String
Date
Msg-id 7357c221-0d49-422e-83d6-fda984822408@ewie.name
Whole thread Raw
In response to SSL Connection String  (tiamoh m <tiamohm25@gmail.com>)
Responses Re: SSL Connection String
List 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



pgsql-admin by date:

Previous
From: Scott Ribe
Date:
Subject: Re: Postgres - SSL connection using only root CA
Next
From: tiamoh m
Date:
Subject: Re: SSL Connection String