Discussion:
SSL client configuration ...
(too old to reply)
GP
2004-04-15 15:34:49 UTC
Permalink
Hi all,

In order to setup a SSL connection to the DataBase I did the following:

- compiled --with-openssl
- ssl=true in postgresql.conf
- hostssl all dbuser 212.205.129.107 255.255.255.0 md5 in
pg_hba.conf
- generated server.crt and server.key as recommended in Administrator's
Guide

Then when I tried to connect (via jdbc driver) I get the following error
from the postmaster:
FATAL: no pg_hba.conf entry for host "::ffff:212.205.129.107", user
"dbuser", database "template1", SSL off

It seems that the client appliaction tries to connect without SSL ???

PS: Also at start up I have some warnings from postmaster :
LOG: could not load root certificate file
"/home/pagomen/PostGress/data/root.crt": No such file or directory
DETAIL: Will not verify client certificates.
LOG: could not bind IPv4 socket: Address already in use
..
LOG: database system is ready

Any ideas ?
George
Peter Eisentraut
2004-04-15 18:26:59 UTC
Permalink
Post by GP
Then when I tried to connect (via jdbc driver) I get the following
FATAL: no pg_hba.conf entry for host "::ffff:212.205.129.107", user
"dbuser", database "template1", SSL off
Make sure you have the latest JDBC driver, the 1.4 JDK, and you use the
correct jar.


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html
Tom Lane
2004-04-15 23:38:41 UTC
Permalink
Post by GP
Then when I tried to connect (via jdbc driver) I get the following error
FATAL: no pg_hba.conf entry for host "::ffff:212.205.129.107", user
"dbuser", database "template1", SSL off
It seems that the client appliaction tries to connect without SSL ???
I dunno if there is SSL support in the JDBC driver. In any case,
you're more likely to get useful help if you ask in pgsql-jdbc ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ***@postgresql.org so that your
message can get through to the mailing list cleanly
aris
2004-04-16 00:22:40 UTC
Permalink
Dear master

Now I'm using PostgreSQL server but my company has plan to
change PostgreSQL to another database "hand made" by
software hous systems. Can you explain to me what kind of
factors to class list database engine. I mean how can I
compare for each database engine. Because I want to
explain that for someone who don't know database at all.
For example : from compatibility side or the other side

TIA
===========================================================================================
Netkuis Instan untuk wilayah Bandung (kode area 022) - SD,SMP,SMA berhadiah total puluhan juta rupiah... periode I dimulai 1 April 2004
===========================================================================================

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ***@postgresql.org so that your
message can get through to the mailing list cleanly
Mitch Pirtle
2004-04-16 03:23:55 UTC
Permalink
Hmm...
Post by GP
- hostssl all dbuser 212.205.129.107 255.255.255.0 md5 in
pg_hba.conf
Shouldn't that be a 255.255.255.255 netmask?
Post by GP
- generated server.crt and server.key as recommended in
Administrator's Guide
Not in the correct directory though. You need to put them both in:

/home/pagomen/PostGress/data

The netmask is being interpreted incorrectly as IPv6 (hence the non-IP
host message):

FATAL: no pg_hba.conf entry for host "::ffff:212.205.129.107", user
"dbuser", database "template1", SSL off

Get your server.crt and server.key in the right directory, and fix the
netmask in pg_hba.conf, and it just might work...

-- Mitch

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ***@postgresql.org so that your
message can get through to the mailing list cleanly

Loading...