Re: Error in SSL config documentation?

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Khusro Jaleel <mailing-lists(at)kerneljack(dot)com>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: Error in SSL config documentation?
Date: 2011-05-07 17:46:04
Message-ID: BANLkTim+=1zT5=4y-ymjAyREvZ5LBX0Fcw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Sat, May 7, 2011 at 18:40, Khusro Jaleel
<mailing-lists(at)kerneljack(dot)com> wrote:
> Hello, according to section 17.8.1 of the docs, I have added "clientcert" to
> a hostssl line in my pg_hba.conf file, but upon restart of the server, I'm
> getting the following error and the server fails to start up:
>
> LOG:  invalid authentication method "clientcert"
> CONTEXT:  line 82 of configuration file
> "/var/lib/pgsql/9.0/data/pg_hba.conf"
> FATAL:  could not load pg_hba.conf
>
> Changing the "clientcert" to "cert" seems to work. So does this mean the
> documentation is incorrect?

These are two different things.

as the docs say, "The clientcert option in pg_hba.conf is available
for all authentication methods, but only for rows specified as
hostssl.", and a bit further down "If you are setting up client
certificates, you may wish to use the cert authentication method, so
that the certificates control user authentication as well as providing
connection security. "

cert is the authentication method that uses client certificates to log in.

clientcert=1 makes the server request a client certificate - but does
not use it for authentication. So the client just has to present *any
valid* client certificate, and can then use whatever other
authenticaiton method is specified (md5, ldap, etc).

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Khusro Jaleel 2011-05-07 18:03:06 Re: Error in SSL config documentation?
Previous Message Khusro Jaleel 2011-05-07 16:40:22 Error in SSL config documentation?