Re: libpq: system-wide root.crt - Mailing list pgsql-bugs

From Martin Pitt
Subject Re: libpq: system-wide root.crt
Date
Msg-id 20100819211112.GB2194@piware.de
Whole thread Raw
In response to libpq: system-wide root.crt  (Martin Pitt <mpitt@debian.org>)
Responses Re: libpq: system-wide root.crt
Re: libpq: system-wide root.crt
List pgsql-bugs
Hello PostgreSQL developers,

Martin Pitt [2010-08-17  6:49 +0200]:
> I received a request to support system-wide root certificates in
> libpq. Right now it only looks in ~/.postgresql/root.crt, but since
> such certificates are usually set up system wide and be maintained by
> the sysadmins, it would be very convenient if there was a fallback
> lookup in /etc/postgresql/ or similar.

Patch attached against current git head. I tested it with both the
default case (new option not specified), as well as with
--with-ssl-root-cert-dir=/etc/postgresql-common, and confirm that in
the latter case root.crt gets picked up from
/etc/postgresql-common/ if it's not in ~/.postgresql/.

Thank you for considering,

Martin
--
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

Attachment

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #5626: Parallel pg_restore fails with "tuple concurrently updated"
Next
From: Tom Lane
Date:
Subject: Re: COPY FROM/TO losing a single byte of a multibyte UTF-8 sequence