pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
error on launching postgres in ssl mode
2+ messages / 2 participants
[nested] [flat]

* error on launching postgres in ssl mode
@ 2005-07-27 08:26 Luca Stancapiano <l.stancapiano@k-tech.it>
  2005-07-27 14:13 ` Re: error on launching postgres in ssl mode Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Luca Stancapiano @ 2005-07-27 08:26 UTC (permalink / raw)
  To: pgsql-admin

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

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

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

then:

chmod 700 /home/data/server.key /home/data/server.crt

chown postgres:postgres /home/data/server.key /home/data/server.crt

and I put theese in my data home.

I launch postgres in this manner:

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

when I launch it I have this error:

FATAL:  could not load server certificate file "/home/data/server.crt": no
start line


why?



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: error on launching postgres in ssl mode
  2005-07-27 08:26 error on launching postgres in ssl mode Luca Stancapiano <l.stancapiano@k-tech.it>
@ 2005-07-27 14:13 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2005-07-27 14:13 UTC (permalink / raw)
  To: Luca Stancapiano <l.stancapiano@k-tech.it>; +Cc: pgsql-admin

"Luca Stancapiano" <l.stancapiano@k-tech.it> writes:
> hello.....I've created the server.key and server.crt in this manner:
> openssl req -new -nodes -keyout server.key -out server.csr

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

> ...

> when I launch it I have this error:

> FATAL:  could not load server certificate file "/home/data/server.crt": no
> start line

> why?

You're asking the wrong people: you should be asking some SSL experts.

All I can say about the above process is that it doesn't match the
example key creation process given in our documentation.  I suppose
you have messed up the "openssl req" steps but I don't know just how.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-07-27 14:13 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-07-27 08:26 error on launching postgres in ssl mode Luca Stancapiano <l.stancapiano@k-tech.it>
2005-07-27 14:13 ` Tom Lane <tgl@sss.pgh.pa.us>

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