From: Kris Jurka <books@ejurka.com>
To: Jeanna Geier <jgeier@apt-cafm.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Beginner's Question: No pg_hba.conf entry for host...SSL
Date: Tue, 26 Sep 2006 14:23:43 -0500 (EST)
Message-ID: <Pine.BSO.4.63.0609261420340.6182@leary2.csoft.net> (raw)
In-Reply-To: <025201c6e19d$ae26c7d0$6700a8c0@geier>
References: <012701c6e182$855cd710$6700a8c0@geier>
<025201c6e19d$ae26c7d0$6700a8c0@geier>
On Tue, 26 Sep 2006, Jeanna Geier wrote:
> Hello- Sorry to re-post this, but I'm sort of stuck on this one and can't
> move forward until I get it resolved.... I've been googling some more and
> looking on some Java sites and trying out some different things with no luck.
> If anyone could offer me some assistance on this one, I would be greatly
> appreciative.
It's a little unclear how much if any of this problem was solved on
-hackers and -admin.
> I've tried the following with the 'prop.setProperty("ssl","true) parameter -
> added:
>
You definitely need this to get a SSL connection.
> However, when I do that, it's throwing an exception from: connection =
> DriverManager.getConnection(url, prop);
> and I'm getting an error message that says: "The connection attempt failed."
>
Have you read the documentation here:
http://jdbc.postgresql.org/documentation/81/ssl-client.html
Java validates the server certificate by default which is different than
the behavior of libpq.
Kris Jurka
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-jdbc@postgresql.org
Cc: books@ejurka.com, jgeier@apt-cafm.com
Subject: Re: Beginner's Question: No pg_hba.conf entry for host...SSL
In-Reply-To: <Pine.BSO.4.63.0609261420340.6182@leary2.csoft.net>
References: <012701c6e182$855cd710$6700a8c0@geier> <025201c6e19d$ae26c7d0$6700a8c0@geier> <Pine.BSO.4.63.0609261420340.6182@leary2.csoft.net>
* 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