On Mon, Aug 10, 2020 at 10:54 AM Shankar Bhaskaran <mailshankarb(at)gmail(dot)com>
wrote:
> How does psql import the server certificate?
>
See:
https://www.postgresql.org/docs/12/libpq-envars.html
Namely the "PGSSL*" prefixed environment variables.
It works by default because both the server and client are usually
installed from the same source and the same default certificate files are
provided to each.
David J.