ssl problem with postgres 8.0

From: "Luca Stancapiano" <l(dot)stancapiano(at)k-tech(dot)it>
To: pgsql-ports(at)postgresql(dot)org
Subject: ssl problem with postgres 8.0
Date: 2005-08-03 16:57:04
Message-ID: 1861.217.221.180.103.1123088224.squirrel@webmail.k-tech.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

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?

Browse pgsql-ports by date

  From Date Subject
Next Message Logan O'Sullivan Bruns 2005-08-04 00:03:56 PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST
Previous Message Clark, Andrew 2005-07-29 17:01:09 Re: Solaris SPARC - Sun compiler 5.5 - 64 bit