pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Luca Stancapiano <l.stancapiano@k-tech.it>
To: pgsql-admin@postgresql.org
Subject: problem on ssl client authentication
Date: Fri, 29 Jul 2005 19:26:30 +0200 (CEST)
Message-ID: <10380.80.181.111.37.1122657990.squirrel@webmail.k-tech.it> (raw)


hello.....I use postgresql 8.0 . I've created the server.key and
server.crt in this manner:

openssl req -new -nodes -keyout server.key -out server.csr

openssl req -x509 -key /home/data/server.key -in /home/data/server.csr -out
server.crt

and I put theese in my data home.

I launch postgres in this manner:

postmaster -il -p '$PGPORT' -D '$PGDATA_LOCAL' ${PGOPTS} &

and postgres starts fine. When I try to connect to myself in this mode:

psql -h localhost

I have this error:

psql: could not open certificate file "/root/.postgresql/postgresql.crt":
No such file or directory

my pg_hba.conf is:

local   all         all         ident     sameuser
hostssl    all    all     0.0.0.0     0.0.0.0         md5


may anyone tell me where I wrong?






Message-ID: <10380.80.181.111.37.1122657990.squirrel@webmail.k-tech.it>
Permalink:  ../10380.80.181.111.37.1122657990.squirrel@webmail.k-tech.it/
Also on:    postgresql.org/message-id/10380.80.181.111.37.1122657990.squirrel@webmail.k-tech.it

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: l.stancapiano@k-tech.it
  Subject: Re: problem on ssl client authentication
  In-Reply-To: <10380.80.181.111.37.1122657990.squirrel@webmail.k-tech.it>
  References: <10380.80.181.111.37.1122657990.squirrel@webmail.k-tech.it>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox