Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id CF3399FB41F for ; Tue, 26 Sep 2006 16:38:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 73907-04 for ; Tue, 26 Sep 2006 16:38:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from socrates.thinkhost.com (mailpipe.socrates.thinkhost.com [64.40.100.194]) by postgresql.org (Postfix) with ESMTP id 685C89FB419 for ; Tue, 26 Sep 2006 16:38:27 -0300 (ADT) Received: from geier (adsl-64-91-71-139-rb.lax.customer.centurytel.net [64.91.71.139]) by socrates.thinkhost.com (8.13.6/8.13.5) with SMTP id k8QJbTDO054905; Tue, 26 Sep 2006 15:37:30 -0400 (EDT) (envelope-from jgeier@apt-cafm.com) Message-ID: <027001c6e1a3$528ed8d0$6700a8c0@geier> From: "Jeanna Geier" To: "Kris Jurka" Cc: References: <012701c6e182$855cd710$6700a8c0@geier> <025201c6e19d$ae26c7d0$6700a8c0@geier> Subject: Re: Beginner's Question: No pg_hba.conf entry for host...SSL Off Date: Tue, 26 Sep 2006 14:38:19 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Antivirus: avast! (VPS 0639-2, 09/26/2006), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.037 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200609/131 X-Sequence-Number: 15849 Hi Kris- Thanks for the reply! A one-liner in your attached link fixed my problem!! Thank you very much!! :o) I had to import my Postgres server.crt certificate into Java's system truststore. Again, thanks for your help, I'm up and running again! -Jeanna ----- Original Message ----- From: "Kris Jurka" To: "Jeanna Geier" Cc: Sent: Tuesday, September 26, 2006 2:23 PM Subject: Re: [JDBC] Beginner's Question: No pg_hba.conf entry for host...SSL Off > > > 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 > >