pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Luca Stancapiano <l.stancapiano@k-tech.it>
To: pgsql-ports@postgresql.org
Subject: ssl problem with postgres 8.0
Date: Wed, 3 Aug 2005 18:57:04 +0200 (CEST)
Message-ID: <1861.217.221.180.103.1123088224.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: <1861.217.221.180.103.1123088224.squirrel@webmail.k-tech.it>
Permalink:  ../1861.217.221.180.103.1123088224.squirrel@webmail.k-tech.it/
Also on:    postgresql.org/message-id/1861.217.221.180.103.1123088224.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-ports@postgresql.org
  Cc: l.stancapiano@k-tech.it
  Subject: Re: ssl problem with postgres 8.0
  In-Reply-To: <1861.217.221.180.103.1123088224.squirrel@webmail.k-tech.it>
  References: <1861.217.221.180.103.1123088224.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