Re: patch: Client certificate requirements - Mailing list pgsql-hackers

From Alex Hunsaker
Subject Re: patch: Client certificate requirements
Date
Msg-id 34d269d40811151430i3c680740o94459cea1e1022f5@mail.gmail.com
Whole thread Raw
In response to Re: patch: Client certificate requirements  ("Alex Hunsaker" <badalex@gmail.com>)
Responses Re: patch: Client certificate requirements  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sat, Nov 15, 2008 at 15:20, Alex Hunsaker <badalex@gmail.com> wrote:
> we do something like:
>
> +       if (access(ROOT_CERT_FILE, R_OK))
> +       {
> +               ssl_loaded_verify_locations = false;
> +
> +               /*
> +               * If root certificate file simply not found. Don't log
> an error here, because
> +               * it's quite likely the user isn't planning on using
> client certificates.
> +               *
> +               * Anything else gets logged (permission errors etc)
> +               */
> +               if (errno != ENOENT)
> +                       ereport(LOG,
> +                               (errmsg("could not load root
> certificate file \"%s\": %s",
> +                                               ROOT_CERT_FILE,
> strerror(errno)),
> +                                errdetail("Will not be able to verify
> client certificates.")));


Err that really should be ereport(FATAL,


pgsql-hackers by date:

Previous
From: "Alex Hunsaker"
Date:
Subject: Re: patch: Client certificate requirements
Next
From: "Oleg Serov"
Date:
Subject: Pl/Perl function: Speed of the First time executing pl/perl function in connection;